Skip to content

Rename sessions from the session view, and let agents rename their own - #25

Merged
tdwd merged 3 commits into
mainfrom
session-titles
Oct 12, 2026
Merged

tdwd merged 3 commits into
mainfrom
session-titles

Conversation

@tdwd

@tdwd tdwd commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Three commits:

  1. Rename a session from the session view. e when detached, ^g e from an attached pane. Both open the existing session rename form.
  2. Take setTitle out of renameSession. No behaviour change.
  3. Let an agent rename its own session with a title tool. The caller's own session only, identified by its URL. One line, at most store.TitleLimit characters. The coordinator queues the title and the frame tick saves it through setTitle, because the store belongs to the UI's goroutine. docs/architecture.md has the reasoning.

Each commit passes go test -race ./... on its own.

tdwd added 3 commits October 12, 2026 11:14
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.
@tdwd
tdwd merged commit dd8e48d into main Oct 12, 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