Repository navigation
Rename sessions from the session view, and let agents rename their own - #25
Merged
Merged
Conversation
e renames the selected session there, and ^g e does it from an attached pane, where a bare e belongs to the agent. Both open the form the dashboard's e already uses for a session, so the title is the only thing they change. The ^g footer, the detached footer and the help screen list it.
The save and the coordinator's copy move into setTitle, so a second caller can rename a session without the form around it. renameSession still reports a failure into the form. No behaviour changes.
A title typed when a session opened goes stale once the agent moves to its next task. The new title tool lets the agent keep it current, for example with the key of the issue it just started. It renames only the caller's own session, which the coordinator knows from the URL. The title is folded to one line and refused when empty or longer than store.TitleLimit, the 120 characters the rename form already allowed. The coordinator updates its own copy at once, so siblings see the new title, and queues it. The coordinator does not write the store, which belongs to the UI's goroutine: the frame tick takes the queue and saves through setTitle, the path the form uses. A title for a session ended before that frame is dropped without a fault.
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.
Three commits:
ewhen detached,^g efrom an attached pane. Both open the existing session rename form.titletool. The caller's own session only, identified by its URL. One line, at moststore.TitleLimitcharacters. The coordinator queues the title and the frame tick saves it throughsetTitle, because the store belongs to the UI's goroutine.docs/architecture.mdhas the reasoning.Each commit passes
go test -race ./...on its own.