Repository navigation
feat(byo): from an approved card, the page is the act; above the copy, only what the paste needs - #2293
Conversation
…, only what the paste needs QA BYO walk 2 (2026-10-16): every #2287 fix was live and time to copy did not move (2:40.7 vs 2:40.3): plain words are not fewer words. 127 words sat before "Get my connect command" and 112 down to the command. From the card. The connect card's link now carries from=card, and the adapter the proposer was told (connect_local_agent takes an optional adapter: claude | codex, validated at proposal; only a listed value reaches the link). On such a link the page skips "Where should it run?" and the name and pod fields: a title naming the tool, one lead line, "It joins <pod> as <name>. Change", the button, "Other ways to connect". 21 words before the button (was 127), button at y=278 (was 647). The key is still minted by the click, never on load: the click is the consent, and a reload or back would otherwise mint another. The act is enabled once the pod list confirms the pod, so a link's pod the person cannot install into is replaced first and the line shows the replacement. A link without from=card (the new pod's "connect an agent" button) keeps the full page. Only where the command exists (#2289): the compact page promises "One command in Terminal", so it opens only where the listener runs, a Mac with either tool or Linux with Codex. A Claude Code card on Linux or Windows, or any card on Windows, opens the full page and its notice. The command page. No eyebrow or lead once the command is shown. Above the copy: the heading, "Run this in Terminal", the OS line, a shorter needs line ("Needs Node 18+ with npm and Claude Code signed in. Run all four lines in one Terminal window."). Below it: the waiting state, the keep-open note, what the command does, then the key-once line. 42 words before the copy (was 112), Copy at y=337 at 1440. The Windows lines are unchanged. Scout passes adapter on the card; its prompt says the command follows the card. It no longer proposes a Claude Code connect card on Linux, WSL or Windows (ubuntu run 38982219348; #2288 refuses that listener): it offers "Run it here" or the MCP command, and says why. zh-CN through the skill's two passes and an adjudication (in the PR body). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0157AG2wo8mJYqKezXNs48Ya
lilyshen0722
left a comment
There was a problem hiding this comment.
SECURITY-GATE: PASS @ d559fda. Independent read (Cofounder operator session; not a Commonly seat). Scope: approvalActionService.ts, nativeRuntimeService.ts, V2AgentBYO.tsx.
adapteris allowlisted three times: at proposal (validateParams), at execution (executeConnectLocalAgent), and again on the page (onlyclaudeorcodex). It is concatenated into the connect path unencoded, but only an allowlisted literal can get there, so there is no injection path.from=cardis a URL parameter, so any link can carry it. It only changes layout. On the compact page the destination pod is named above the button ("joins as "), and the button stays disabled until the person's own pod list contains that pod. A forged link can't make the click land in a pod that isn't shown to the person or that they can't install into. The name still goes throughsanitizeAgentName.- No change to when the key is minted: still only by the click (
submit), never on load or on approve.reservedAgentNameRefusalandassertAgentRuntimeMayJoinPodstill run at execution. - Non-blocking: the "people in this pod can @mention it" line (
listen.body) now sits below the command rather than above it. It's still on the same screen before anything runs, so this is fine. Keep it on that screen in later trims, because it's the line that says what running the command allows.
GATE: PASS
lilyshen0722
left a comment
There was a problem hiding this comment.
Written by sprint-review, a Commonly agent — code gate at d559fda8d. pod thread
Base 3c4fb50f8 (= origin/main). Tier 1 green at this head (run 38985818939). BASE/RESTORED: frontend 2 suites / 21 passed, backend 3 suites / 57 passed.
"The key is minted only by the click" — verified structurally
The one that would be bad to get wrong, since ?from=card makes the page an act. submit appears in this component only as an onClick: grep -n "submit\b" | grep -v onClick leaves nothing but class names and the submitting flag, and no useEffect references submit, issueToken or the issue endpoint. So a crafted ?from=card&… link cannot mint a runtime token on load; the click is the only path, and the click is gated on the pod list confirming the pod (U2 reds the act waits for the pod list: nothing is minted for a pod the page has not confirmed).
Six of seven mutations red by name
| mutation | failures |
|---|---|
U1 compact ignores listenerAvailable |
2 — a Claude Code card opened on Linux gets the full page, not the promise of one command, on Windows no card is compact, Codex included |
| U2 the pod gate dropped from the compact button | 1 |
U4 from=card no longer compacts |
6 |
| U5 (backend) the adapter unvalidated at proposal | 1 |
| U6 (backend) an unlisted adapter reaches the connect link | 1 |
U7 (backend) from=card dropped from the link |
3 |
U3 the page stops validating ?adapter= |
green, 21 passed |
U1 is the property that matters most across the stack: a compact "one command in Terminal" view never opens where #2288 refuses the listener. Both arms name the exact cells I cross-tabbed on #2289.
Non-blocking: the page's own ?adapter= validation is load-bearing and unpinned
prefill.adapter is validated on the page — (a === 'claude' || a === 'codex' ? a : null) — and U3 shows nothing notices when that is removed. The backend's two checks do not cover this: they guard the link the card generates, and ?adapter= is a URL parameter anyone can type or send.
Two lines make it load-bearing, and I am reporting these as read, not executed — my attempt to demonstrate it end-to-end did not run (the probe failed to drive the issue flow in both arms, so it produced no result in either direction, and I am not claiming one):
:165useState<'claude' | 'codex'>(prefill.adapter || 'claude'):712…\ncommonly agent run ${issued.agentName} --adapter ${listenAdapter}
That is a direct interpolation of a URL parameter into the command the page tells a person to paste into their shell. With the page-side check present the value can only be claude or codex; with it removed, an arbitrary string lands in that line. The fix is already in place — the finding is only that no test holds it there, and this is the single assertion I would add to the new suite: render with ?from=card&adapter= something unlisted and expect the command to say --adapter claude.
GATE: PASS
From Cofounder's BYO walk 2 (2026-10-16). Every #2287 fix was live, yet time to copy didn't move (2:40.7 vs 2:40.3): plain words aren't fewer words. 127 words sat before "Get my connect command", and 112 down to the command. This applies the move that worked on the hosted page (130 → 38).
Builds on #2289 (where the listener runs). Measured on a local build of this branch against prod, Mac, 1440×900:
At 390×844 the whole command box sits above the fold, with no horizontal scroll.
From an approved card, the page is the act
from=card, plus the tool the proposer was told.connect_local_agenttakes an optionaladapter: claude | codex, validated at proposal, and only a listed value reaches the link.from=card(the new pod's "connect an agent" button) keeps the full page.The command page: above the copy, only what the paste needs
Scout
execvp …/.local/bin/claude: No such file or directory, and on Ubuntu 24.04 AppArmorsetting up uid map: Permission denied. fix(cli): a Connect-page seat starts with the daemon's default environment, on a host that can run it #2288 refuses that listener at start. Scout offers "Run it here" or the MCP command instead, and says why.refresh-native-agent-configs --app scout.Tests
V2AgentBYOFromCard(11 tests): the card asks nothing it settled; no key on load; Codex opens on Codex; Change keeps the choices; an unknown pod is replaced; the act waits for the pod list; nofrom=cardgives the full page; Linux with Claude Code gives the full page; Linux with Codex is compact; Windows is never compact; on the command page, key-once and "what it does" come after the command.from=cardand the adapter, and an unlisted adapter never reaches it; an adapter outside the list is refused at proposal; Scout's Mac/Linux/Windows rule.from=carddropped in the backend (three tests).zh-CN
The skill's two passes (voice, terminology), then adjudicated: glossary wins on terms, voice on rhythm.
compactByo.titleClaudeagentByo.title/firstRun.steps.connect.titlecompactByo.titleCodexlisten.toolCodex)compactByo.leadagentByo.descriptionlisten.titlelisten.needsThe terminology pass also flagged three older strings that use 连接 where the BYO flow uses 接入 (
inviteModal.agentHint,inviteModal.connectOwnAgent,yourTeam.empty.text). They're out of scope here and left for a later sweep.🤖 Generated with Claude Code
https://claude.ai/code/session_0157AG2wo8mJYqKezXNs48Ya