Skip to content

feat: add session reload command#63

Merged
benvinegar merged 1 commit into
mainfrom
feat/session-reload
Mar 23, 2026
Merged

feat: add session reload command#63
benvinegar merged 1 commit into
mainfrom
feat/session-reload

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Summary

  • add hunk session reload (<session-id> | --repo <path>) -- <hunk command> so agents can swap the contents of a live Hunk TUI in place
  • route a new reload action through the session daemon/websocket bridge and preserve the same session identity while refreshing registration metadata
  • remount the app shell on reload so it behaves like restarting the session with new input, and cover the flow with CLI, daemon, help, and live session tests

Examples

hunk session reload --repo . -- diff
hunk session reload --repo . -- diff main...feature -- src/ui
hunk session reload --repo . -- show HEAD~1 -- README.md

Verification

  • bun run format:check
  • bun run lint
  • bun run typecheck
  • bun test
  • bun run check:pack

@benvinegar benvinegar merged commit b5ce500 into main Mar 23, 2026
3 checks passed
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