Repository navigation
fix(byo): one command to run, what it needs said first, and plain words on the way there - #2287
Conversation
…ds on the way there QA BYO walk 1 (2026-10-16, Claude Code on a Mac): 2:40 from signup to the copy, 56 s of it reading two Bring-your-own screens, and a trap at the end. - One command is THE box: "Run this in Terminal, and keep it open", first on the page. The box titled "Claude Code" was the MCP line, which does not make the agent answer; it is now "Optional: let Claude Code use the pod in your own sessions", says what it does not do, and shows only for Claude Code. The bare key and the Cursor config fold under "Other ways to connect", and so do the daemon one-liner and the SDK footnote on the page before, which sat under the button as two more equal choices. - What it needs, before the copy, in one line: Node 18+ with npm, Claude Code (or the Codex CLI) installed and signed in, run in Terminal, and the export lines last only for that window. One block, so CTO's Windows line goes beside it. - No silent fall back to Codex: the command pins its tool (--adapter claude, or --adapter codex after "I use Codex instead"), and the CLI then fails with "Adapter 'claude' not found on PATH" instead of starting the other one. - Plain words: "Get my connect command" (was "Install + generate token"), "Use my own agent" (was "Bring your own runtime"), "Pod it joins" (was "Install into pod"), and no "runtime", "seat", "runtime token", "hashes the token after issuance", "idempotent" or "polls" on the way. The approval card says "Connect your own agent as …" with the next step, not "a local agent seat". - Scout writes the card's summary in plain words with the next step inside it, and no longer re-posts the steps after Approve (they arrived after the page had already moved on); the page carries them now. - zh-CN carries the same changes (glossary: 智能体, Pod, 终端). Tests: the command is the first box, the MCP line is marked optional and the bare key sits under Other ways; what it needs is said before the copy, and the Codex switch gives a Codex command and drops the Claude-only MCP box; the run line pins --adapter claude; Scout's prompt keeps plain card words and the pinned command. Mutations: the adapter unpinned and the MCP box shown for Codex each red an arm. Checked in a real browser at 1440 and 390 on a local build against production. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0157AG2wo8mJYqKezXNs48Ya
…o passes The gate for zh-CN is the skill (locked glossary, voice pass, terminology pass, adjudicate), not a native read (Sam, 2026-09-23). 17 strings changed; the PR body carries the change table. - Voice: no English-order tails (名为…), the setup time stated as setup time, input hints that read as rules, the person named as who acts, and the "all four lines in one window" step stressed. - Terminology: 密钥 for the key (not 私密密钥, which reads as 私钥), 回复 for an agent's answer (回应 is reactions), the verb 接入 for checking in (also fixing hosted.slow's lone 签到), and 尚未监听 as preview.waiting already says. Numbers stay joined to their units (约2分钟), per the bundle's spacing test. 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.
Written by sprint-review, a Commonly agent — code gate at b7479b78e. pod thread
Not the head I was asked for. The request named 801a27c79 and said CI was green there; in fact the Tests run at that head was cancelled — by the push that created b7479b78e, three minutes before I looked. The new head is zh-CN copy only (git diff --name-only between the two returns frontend/src/i18n/locales/zh-CN.json alone), so every component, CSS and CLI measurement below was taken on identical code; I re-ran the frontend suites and the i18n checks at the new head.
Base c01b38fd0 (= origin/main). Tier 1 green at this head: run 38976365327, headSha b7479b78ea3dd372838a6f3ac80115a232f3606b, 54 suites / 538 tests. Frontend BYO suites 42/42 at this head too.
The cross-package claim, checked against the actual CLI
--adapter pinning is only worth anything if the CLI accepts what the UI tells people to paste, and nothing in either package tests that pair. So I ran it:
$ node src/index.js agent run --help
Usage: commonly agent run [options] <name>
--adapter <name> CLI to wrap on first-run bootstrap
declared at cli/src/commands/agent.js:3042 on .command('run <name>') as (claude|codex|pi|opencode|qwen), and the component's listenAdapter is typed 'claude' | 'codex' — both inside the accepted set. So the copied command parses, and the silent-fallback fix is real rather than cosmetic.
Four mutations, each red by name
BASE and RESTORED both 5 suites / 42 passed:
| mutation | failures |
|---|---|
Q1 the --adapter pin dropped |
2 — what it needs is said before the copy… and every line executes: the CLI install is a command, not a comment, and the run line is last |
| Q2 the MCP box shows for every adapter again | 1 |
| Q3 the prerequisites row removed | 1 |
| Q4 the adapter switch removed | 1 |
The backend arm is green too (nativeAgents.scoutKnowledge, 11/11).
One test is carrying four properties. Q2, Q3 and Q4 all red the same single test — what it needs is said before the copy, and Codex users get a Codex command. Four distinct claims (the prerequisites row exists, it precedes the copy, the adapter switch exists, the MCP box is Claude-only) live in one test(), so a future break reports a name that points at a different property, and deleting that one test unguards the cluster. Worth splitting; nothing is wrong today.
i18n, measured both ways
- Key parity: 0 keys in en missing from zh outside the 8
_oneplural variants, which are identical onorigin/main(control) and which this PR does not touch (grep -c _oneover the i18n diff: 0). So no key gap is introduced. - Placeholder parity across all 1,622 shared keys: 0 mismatches. The zh copy pass did not drop an interpolation — the thing most likely to go wrong in a translation-only commit, and the thing no test here checks.
Non-blocking: the three new CSS rules are unguarded, measured
I deleted all three new rules — .v2-byo__needs, .v2-byo__more, .v2-byo__more > summary — and v2-layout-invariants plus the BYO snippet suite stayed at 214/214 green. So nothing in the tree notices their removal.
CLAUDE.md asks for exactly this guard ("guard load-bearing CSS rules with a presence test … until a browser-layout tier exists"), and .v2-byo__hint is already in that file, so the precedent is one selector away. .v2-byo__more is the one I would pin: display: flex on a <details> makes <summary> a flex item, which is the sort of rule a later reader deletes as decoration and jsdom can never miss. Three lines in the invariants test.
I took the 1440/390 browser check as stated — it is not something I can re-run from here, and the presence test is what would catch a regression of it later, which is why the gap above is worth closing.
GATE: PASS
Fixes from QA BYO walk 1 (2026-10-16, "Connect an agent I already use", Claude Code on a Mac): 2:40 from signup to the copy, 56 s of it reading two Bring-your-own screens (236 words), and a wrong-command trap at the end. Sam walks Stanislas through this page on Wednesday.
1. One command is THE box (the worst one)
The result page had 4 equal code boxes. The one titled "Claude Code" was the MCP line, which does not make the agent answer.
2. What it needs, before the copy, in one line
commonly agent run <name> --adapter claude, or--adapter codexafter "I use Codex instead". A Mac without Claude Code then getsAdapter 'claude' not found on PATHinstead of quietly starting Codex.$env:, WSL) goes beside it. CTO builds on this branch.3. Plain words
4. Scout's follow-up
It used to post after Approve, by which time the page had already moved on.
node dist/scripts/refresh-native-agent-configs.js --app scout, then--apply.Checked in a real browser
A local vite build of this branch against production, with a fresh test account. The key was blanked in the page before every screenshot.
--adapter codex, the needs line says "the Codex CLI", and the Claude-only MCP box goes.Screenshots are local:
byo-web-1440-before.png,byo-web-1440-result.png,byo-web-1440-result-bottom.pngandbyo-web-390-result.png. Ask and I'll post them to the thread.Tests
--adapter claude.tscand eslint are clean on both sides.zh-CN: through the
zh-cn-ui-localizationskillThe gate is the skill, not a native read (Sam, 2026-09-23): the locked glossary, a voice pass and a terminology pass run in parallel, then adjudicated. The glossary and the bundle's own precedent win on terms; the voice pass wins on rhythm. 32 strings were reviewed and 17 changed:
approvalCard.action.connectLocalAgentapprovalCard.approvedSeatReadyagentByo.descriptionagentByo.form.nameHintagentByo.form.podLabelagentByo.form.podHintagentByo.form.adapterHintagentByo.result.headingagentByo.result.keyOnceagentByo.snippets.runtimeTokenagentByo.listen.bodyagentByo.listen.noteagentByo.listen.stillWaitingagentByo.listen.ctaWarningagentByo.listen.needsagentByo.mode.byoMetaagentByo.hosted.slowLeft as is, for a later sweep: the bundle still says 令牌 for the same credential in
agentByo.errors.tokenEmptyandfirstRun.steps.connect.text, while this flow says 密钥. One word should win bundle-wide.Docs fix flagged: the skill still says "Sam's native-speaker pass" gates merge (
SKILL.mdlines 8 and 50, in the separatecommonly-skillsrepo). That predates the 09-23 ruling.🤖 Generated with Claude Code
https://claude.ai/code/session_0157AG2wo8mJYqKezXNs48Ya