Skip to content

docs(send): a spawned agent's name is unique only when picked - #180

Merged
sigma merged 1 commit into
mainfrom
docs-174
Nov 10, 2026
Merged

sigma merged 1 commit into
mainfrom
docs-174

Conversation

@sigma

@sigma sigma commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Two sends spawning at once can pick the same agent name. Nothing finds an agent by its name, only by its pane (selection by workspace, kind, status and cwd; the marker records the pane id; CloseTab matches the pane and checks only the name's form). So the race only repeats a label. Triage closed #174 as not planned, and this corrects the two places that promised uniqueness: spec §9.1 step 4 and AgentName's comment.

Docs and a comment only: just check and nix flake check pass.

Refs #174


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Two sends spawning at once can pick the same name. Nothing finds an
agent by its name, only by its pane, so it only repeats a label; say so
in the spec and on AgentName rather than guard it.

Refs #174
@sigma
sigma merged commit 77088df into main Nov 10, 2026
2 checks passed
@sigma
sigma deleted the docs-174 branch November 10, 2026 15:49
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.

Two concurrent spawns can pick the same agent name

1 participant