Skip to content

feat(tui,cli): copy-session-id command and exact-session resume - #138

Merged
jkyberneees merged 1 commit into
mainfrom
feat/session-resume-commands
Sep 30, 2026
Merged

jkyberneees merged 1 commit into
mainfrom
feat/session-resume-commands

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Summary

  • New /copy-session-id command copies the active session id to the clipboard (pbcopy/wl-copy/clip, OSC 52 fallback); hostile ids are charset-validated before touching a paste surface
  • New bodek --session <id> flag resumes one exact session — beats the workspace's last-session id, implies resume, --new still wins
  • On exit, bodek prints a ready-to-paste resume line naming the session just closed (bodek --session <id>); the live session id wins over the workspace store, and the hint also fires on TUI-crash exits

Testing

  • RED-first unit tests for the command, flag precedence, hint format, id validation, and store isolation (BODEK_WORKSPACE → temp dir)
  • Registry-sweep e2e case added (TestE2EAllCommands)
  • Full go test -race ./... green across all packages; new code at 100% coverage
  • README, --help examples, and the /help registry updated

- /copy-session-id copies the active session id to the clipboard
- bodek --session <id> resumes one exact session (implies resume;
  --new still wins)
- after exit, print a ready-to-paste resume line naming the session
  just closed; the live session id beats the workspace store, ids are
  charset-validated before reaching a paste-into-shell surface
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bodek 6f4952c Commit Preview URL

Branch Preview URL
Sep 30 2026, 07:04 AM

@jkyberneees
jkyberneees merged commit fe2bd29 into main Sep 30, 2026
8 of 9 checks passed
@jkyberneees
jkyberneees deleted the feat/session-resume-commands branch September 30, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant