From d5d8374a3bfa0283695177f15442e8b6386baeba Mon Sep 17 00:00:00 2001 From: rsridhr <254571528+rsridhr@users.noreply.github.com> Date: Fri, 17 Jul 2026 22:22:17 -0500 Subject: [PATCH 1/2] feat(launch): show session id prefix in resume picker The resume picker listed sessions by first message + timestamp only, with no way to tell which session id each row maps to. Prepend the 8-char session id prefix to each row label so sessions are identifiable at a glance. --- cmd/launch.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/launch.go b/cmd/launch.go index 1efddef..9f7982a 100644 --- a/cmd/launch.go +++ b/cmd/launch.go @@ -140,9 +140,10 @@ func runLaunch(cmd *cobra.Command, args []string) { default: labels := make([]string, len(sessions)) for i, sess := range sessions { + id := shortSessionID(sess.sessionID) msg := padRight(u.Truncate(strings.Join(strings.Fields(sess.firstMessage), " "), 60), 60) t := time.UnixMilli(sess.lastActivity).Local().Format("Jan 02 3:04pm") - labels[i] = fmt.Sprintf("%s %s", msg, t) + labels[i] = fmt.Sprintf("%s %s %s", id, msg, t) if multiAccount { labels[i] += " " + u.AbbreviatePath(sess.configDir) } @@ -324,6 +325,16 @@ func discoverSessions(accounts []string, cwd string) []sessionEntry { return all } +// shortSessionID returns the leading 8 characters of a session UUID for +// display in the resume picker. Session IDs are ASCII UUIDs, so byte slicing +// is safe; shorter ids (should not occur) are returned as-is. +func shortSessionID(id string) string { + if len(id) > 8 { + return id[:8] + } + return id +} + func padRight(s string, width int) string { runes := []rune(s) if len(runes) >= width { From 085fb2e8cee6b69528018e54ffe8e128927ffcaa Mon Sep 17 00:00:00 2001 From: Tanishq <37408906+Tanq16@users.noreply.github.com> Date: Sat, 18 Jul 2026 08:52:34 -0400 Subject: [PATCH 2/2] Update cmd/launch.go --- cmd/launch.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/launch.go b/cmd/launch.go index 9f7982a..2e607b3 100644 --- a/cmd/launch.go +++ b/cmd/launch.go @@ -325,9 +325,6 @@ func discoverSessions(accounts []string, cwd string) []sessionEntry { return all } -// shortSessionID returns the leading 8 characters of a session UUID for -// display in the resume picker. Session IDs are ASCII UUIDs, so byte slicing -// is safe; shorter ids (should not occur) are returned as-is. func shortSessionID(id string) string { if len(id) > 8 { return id[:8]