Repository navigation
Linear start: an optional name labels the new pane and pins it - #62
Merged
Merged
Conversation
… new pane and pins it branch_spawn.spawn passes the name to spawn_claude_with_prompt, which already names the window and pins it against the narrator. A Claude already on the branch keeps its name. docs/narrator.md lists the route as a fourth pin writer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
3 of 4 tasks
Collaborator
Author
|
I ran a real start with a name on the dev backend (:17375), from this branch. Request: Result:
After the check, I removed the window, the worktree and the branch, and I stopped the dev backend. 🤖 Generated with Claude Code |
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.
Another app can now name the Claude that
POST /api/linear/startstarts. Today the narrator names that pane from its work, and the name changes as the work moves. todo-hub will send the issue's ID and a few words, for exampleeng-123-grade-rebin, so the pane is easy to find on the rail.Changes
StartBodytakes an optionalname(routes/linear.py). The route strips it, and an empty name becomesNone.branch_spawn.spawnpassesnametochannels.spawn_claude_with_prompt. That function already gives the window the name (new-window -n) and pins it (name_pinned), asspawn_claude(name=…)does. Prepare passes no name, so prepare does not change.existingbefore any spawn, as before.docs/narrator.mdlists the route as the fourth writer of the pin.Assumptions to challenge
set_namerefuses one. The only caller today, todo-hub, sends lowercase words and dashes.namegets the old behavior. An older periscope ignores the field, becauseStartBodydoes not forbid extra fields.Test plan
uv run pytest -q: 2255 pass. New:test_a_name_goes_to_the_spawn.test_start_spawns_claude_in_the_worktreenow checks that a start without a name passesNone.bin/check: ruff, ruff format and ty pass. Biome did not run in the new worktree (nonode_modules). This PR changes no JS.checkandpytestpass. The firstpytestrun failed on a timing test intest_state_hub.py, which this PR does not touch; the rerun passed.🤖 Generated with Claude Code