Give a hand-renamed window's name to its session #339
Loading…
Reference in a new issue
No description provided.
Delete branch "ses-325-window-rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/SES-325
Renaming an at-claude window by hand (tmux's rename-window,
prefix ,) left its Claude session under the old name: other sessions andresume-claudelisted the old one, and a restarted or resumed window took it back. The window only ever copied the session's name onto tmux, never the other way.Added
window-renamedhook on its tmux window, in the pane's own slot (window-renamed[<pane>]), and clears it as it quits. The hook runsat-claude renamed -pane <n>, which reads the window as tmux has it now and, whenautomatic-renameis off (a rename, not tmux's automatic name) and the pane has a host, hands the name over through a newrenamedhost role. It says nothing and always exits 0, since tmux shows a run's output in the pane; failures go to the log.window-renamedevent, not kept with the conversation (Claude Code has the name by then, which a later window reads).claude-title, given to Claude Code (rename), and final over a late Haiku answer. at-claude's own renames fire the hook too and are passed over, since the name is already the window's.Left alone: the protocol number (an older window drops the event, an older host closes the unknown role), Low integrity clients (the role isn't allowed below Medium), and how a session's own
/renameor Haiku name the window.Checked on a throwaway tmux server with this build: a hand rename wrote
custom-title"Hand Named" to the session and itsclaude-titlefile; resuming the session opened the window as "Hand Named"; a second rename landed the same way; at-claude's own renames logged no hand rename.ci-checkpassed.TestLowIntegrityChildfails on this PC on main too (its Low temp write is refused here), not touched by this change.🤖 Generated with Claude Code
merge-queue stopped this at
8bdf391: CI failed: Suite go / check-test-linux (pull_request), Suite go / reused-checks (pull_request) (never ran). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.merge-queue stopped this at
8bdf391: conflicts with main: conflicts in internal/host/host.go, internal/host/host_test.go, internal/host/protocol.go too, not only go.mod and go.sum. Push a fix, or once it is fixed outside this pull request, remove and re-add thequeuelabel.merge-queue stopped this at
8bdf391: CI failed: Suite go / check-test-linux (pull_request), Suite go / reused-checks (pull_request) (never ran). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.merge-queue stopped this at
8bdf391: conflicts with main: conflicts in internal/host/host.go, internal/host/host_test.go, internal/host/protocol.go too, not only go.mod and go.sum. Push a fix, or once it is fixed outside this pull request, remove and re-add thequeuelabel.merge-queue stopped this at
8bdf391: conflicts with main: conflicts in internal/host/host.go, internal/host/host_test.go, internal/host/protocol.go too, not only go.mod and go.sum. Push a fix, or once it is fixed outside this pull request, remove and re-add thequeuelabel.merge-queue stopped this at
8bdf391: CI failed: Suite go / check-test-linux (pull_request), Suite go / reused-checks (pull_request) (never ran). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.