feat(herdr): added session-context pane rename on prefix+shift+p - #72
Merged
Conversation
Rebind prefix+shift+p to an LLM-powered pane rename. The script labels the pane <project>:<intent> by asking the pane's own agent CLI (codex exec for Codex panes, claude -p haiku otherwise, both on subscription auth) to summarize the session title and recent scrollback. Falls back to <repo>:<branch> or the folder name when no agent CLI is available. Word-boundary truncation within the 40-char label budget, herdr notifications on start/finish/failure, 60/120s timeouts, tool-disabled sandboxed LLM calls, and stderr logging to ~/.local/state/herdr when run non-interactively.
Also unset OPENAI_API_KEY for the codex call so both LLM paths use their subscription login regardless of ambient credentials.
Owner
Author
|
/review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C-x Shift-Ppane rename, upgraded from staticrepo:branchlabels to names that reflect what the session is actually doing.herdr-pane-renameasks the pane's own agent CLI (codex execfor Codex panes,claude -phaiku otherwise, both on existing subscription auth) to label the pane<project>:<intent>from session title + scrollback; falls back to<repo>:<branch>/ folder name without an agent CLI; herdr toasts on start/finish/failure; sandboxed tool-disabled LLM calls with 60/120s timeouts and non-tty stderr logging.C-x Shift-Rconfig reload.Tests: ✓ make test (35 platform + 5 script suites; new test-herdr-pane-rename.sh covers 7 cases incl. agent routing, truncation, failover)
Docs: ✓ docs/content/herdr.md
Breaking: – none