From 534898a3b3450db076bfdbabb66818e6b811aa86 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Sun, 29 Mar 2026 11:14:14 -0700 Subject: [PATCH] fix: remove rkey truncation in Semble CLI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The [:12] truncation was cutting off the trailing 'r' from 13-char rkeys, causing show commands to fail with "Record not found". Now displays full rkeys so list output can be used directly with show. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code --- tools/cli.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/cli.py b/tools/cli.py index 3ad54d8..c3b8d19 100644 --- a/tools/cli.py +++ b/tools/cli.py @@ -301,7 +301,7 @@ def list_thoughts(limit: int): v = r["value"] text = v.get("thought", v.get("content", ""))[:60] rkey = r["uri"].split("/")[-1] - console.print(f" [dim]{rkey[:12]}[/dim] {text}...") + console.print(f" [dim]{rkey}[/dim] {text}...") @thought.command() @@ -574,7 +574,7 @@ def list_cards(limit: int): for r in records[:limit]: v = r["value"] card_type = v.get("type", "?") - rkey = r["uri"].split("/")[-1][:12] + rkey = r["uri"].split("/")[-1] if card_type == "URL": url = v.get("content", {}).get("url", "?") @@ -860,7 +860,7 @@ def list_collections(limit: int): for r in records[:limit]: v = r["value"] name = v.get("name", "?") - rkey = r["uri"].split("/")[-1][:12] + rkey = r["uri"].split("/")[-1] desc = v.get("description", "")[:40] console.print(f" [dim]{rkey}[/dim] [cyan]{name}[/cyan]") if desc: @@ -930,12 +930,12 @@ def show(uri: str): if card_type == "URL": title = card_v.get("content", {}).get("metadata", {}).get("title", "") url = card_v.get("content", {}).get("url", "") - console.print(f" [dim]{card_rkey[:12]}[/dim] [cyan]URL[/cyan] {title[:30] or url[:30]}") + console.print(f" [dim]{card_rkey}[/dim] [cyan]URL[/cyan] {title[:30] or url[:30]}") elif card_type == "NOTE": text = card_v.get("content", {}).get("text", "")[:30] - console.print(f" [dim]{card_rkey[:12]}[/dim] [yellow]NOTE[/yellow] {text}...") + console.print(f" [dim]{card_rkey}[/dim] [yellow]NOTE[/yellow] {text}...") else: - console.print(f" [dim]{card_rkey[:12]}[/dim] [red]not found[/red]") + console.print(f" [dim]{card_rkey}[/dim] [red]not found[/red]") @collection.command() -- 2.51.2