Skip to content

fix(byo): one command to run, what it needs said first, and plain words on the way there - #2287

Merged
lilyshen0722 merged 2 commits into
mainfrom
growth/byo-web-path
Oct 16, 2026
Merged

lilyshen0722 merged 2 commits into
mainfrom
growth/byo-web-path

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • First on the page: "Run this in Terminal, and keep it open", with the command that makes the agent answer.
  • The MCP line is now "Optional: let Claude Code use the pod in your own sessions". It says it doesn't make the agent answer @mentions, and shows only for Claude Code.
  • Under "Other ways to connect" (folded): the bare key, the Cursor config, and, on the page before, the "Add a computer" daemon one-liner and the SDK footnote. Those last two sat under the button as two more equal choices.

2. What it needs, before the copy, in one line

Before you paste (Mac or Linux): Node 18+ with npm, and Claude Code installed and signed in. The export lines last only for this Terminal window, so run all four in one. I use Codex instead

  • No silent fall back to Codex. The command now pins its tool: commonly agent run <name> --adapter claude, or --adapter codex after "I use Codex instead". A Mac without Claude Code then gets Adapter 'claude' not found on PATH instead of quietly starting Codex.
    • A friendlier CLI message would need a CLI release, so it's not in this PR.
  • One block, so CTO's Windows line (PowerShell $env:, WSL) goes beside it. CTO builds on this branch.

3. Plain words

was now
Install + generate token Get my connect command
Bring your own runtime / MCP token + snippets for your editor Use my own agent / One command in Terminal
Connect Claude Code, Cursor, or Codex … via MCP Connect the Claude Code or Codex you already use, so it answers you in your pods
Install into pod Pod it joins
Runtime token The key on its own (folded)
Token issued for … hashes the token after issuance … idempotent on identity Your connect command for … the key is shown only once; lost it, press the button again
polls / the machine your agent lives on / the wrapper Terminal window / your computer / the command
Card: Connect a local agent seat named "x" / the seat is ready … connect page Connect your own agent as "x" / Next, copy one command into Terminal

4. Scout's follow-up

It used to post after Approve, by which time the page had already moved on.

  • The steps are now on the page. It shows the command and what it needs, so nothing depends on the follow-up.
  • Scout's prompt changes:
    • it writes the card's summary in plain words with the next step inside it ("Next, you copy one command into Terminal");
    • it never says seat, token, listener, runtime or connect page;
    • after Approve, at most one short line.
  • After deploy, existing Scouts need: 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.

  • 1440, pre-issue: one button, "Get my connect command" (y=647), and "Other ways to connect" folded beneath it.
  • 1440, result: the command first (y=355), with the needs line above it. Only 2 Copy buttons are drawn (the command and the optional MCP line); "Other ways" is folded.
  • The switch: it gives --adapter codex, the needs line says "the Codex CLI", and the Claude-only MCP box goes.
  • 390: no horizontal overflow.

Screenshots are local: byo-web-1440-before.png, byo-web-1440-result.png, byo-web-1440-result-bottom.png and byo-web-390-result.png. Ask and I'll post them to the thread.

Tests

  • The result page:
    • the command is the first box;
    • the MCP line is marked optional;
    • the bare key sits under Other ways;
    • what it needs is said before the copy;
    • the Codex switch gives a Codex command and drops the Claude-only MCP box;
    • the run line pins --adapter claude.
  • Scout: its prompt keeps plain card words and the pinned command.
  • Updated, not loosened: the assertions on the button and heading copy, and the order test, which now pins that the command comes first.
  • Mutations, each failing a test:
    • the adapter unpinned;
    • the MCP box shown for Codex.
  • Ran locally on Node 22:
    • every v2 suite: 104 suites, 1157/1157;
    • Scout's knowledge and native-agent suites.
    • tsc and eslint are clean on both sides.

zh-CN: through the zh-cn-ui-localization skill

The 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:

key before after why
approvalCard.action.connectLocalAgent 接入你自己的智能体,名为“{{name}}” 接入你自己的智能体“{{name}}” voice: drop the English-order 名为… tail; both passes flagged it
approvalCard.approvedSeatReady 已批准。下一步:在终端里运行一条命令,下一页会给出。 已批准。下一步:把下一页给出的命令复制到终端里运行。 voice: the source says copy; one clause carries the instruction
agentByo.description 接入你已在用的 Claude Code 或 Codex,让它在你的 Pod 里回复你。在终端里运行一条命令,约 2 分钟。 接入你已在用的 Claude Code 或 Codex,让它在你的 Pod 里回复你。只需在终端里运行一条命令,约2分钟完成。 voice (number joined to its unit, per the bundle's spacing test): "约 2 分钟" read as the command running 2 min; 只需…完成 makes it setup time
agentByo.form.nameHint 小写字母、数字和连字符。它会用这个名字发言。 仅支持小写字母、数字和连字符。它会用这个名字发言。 voice: a bare list does not read as an input rule
agentByo.form.podLabel 加入的 Pod 要加入的 Pod voice: 加入的 reads as a Pod already joined
agentByo.form.podHint 它会加入这个 Pod,之后还可以加入更多 Pod。 它会加入这个 Pod,之后你还可以把它加到更多 Pod。 voice: the source names who acts (you)
agentByo.form.adapterHint 选择那台电脑上由哪个 CLI 运行这个智能体。保持自动检测,就用已安装的那个。 选择在那台电脑上用哪个 CLI 运行这个智能体。保持自动检测,就会用已安装的那个。 voice, adjusted: the option label is 在这台电脑上自动检测, so it is not quoted as 自动检测
agentByo.result.heading 你的接入命令: 你的接入命令,对应智能体 voice: rendered before the agent name; 你的接入命令: read as if the name were the command
agentByo.result.keyOnce 命令里有一个私密密钥,只显示这一次。弄丢了?回到这里再点一次“获取接入命令”,会生成新的。 命令里有一个密钥,只显示这一次。弄丢了?回到这里再点一次“获取接入命令”,会生成新的。 terminology: 私密密钥 repeats 密 and reads as 私钥; the flow already says 密钥 (mode.hostedMeta)
agentByo.snippets.runtimeToken 单独的密钥 仅密钥 both passes: 单独的 can read as a second, different key
agentByo.listen.body 有了它,{{name}} 才会回复你在 Pod 里的 @提及。 有了它,{{name}} 才会在你的 Pod 里回复 @提及。 voice: 你在 Pod 里的 @提及 meant mentions you wrote
agentByo.listen.note 终端窗口开着时,它会以 {{name}} 的身份回复。关掉窗口,{{name}} 被提及时就不会回应。 终端窗口开着时,它会以 {{name}} 的身份回复。关掉窗口,{{name}} 被提及时就不会回复。 terminology: 回应 is reactions in the bundle; agents 回复 (podChat.deliveryHint)
agentByo.listen.stillWaiting 仍未收到 {{name}} 的接入信号。请在你电脑的终端里运行上面的命令,本页会自动确认。 {{name}} 还没接入。请在你电脑的终端里运行上面的命令,这里会自动确认。 both: the verb 接入 (bundle precedent) over the new noun 接入信号; 还没/这里 for rhythm, matching listen.waiting
agentByo.listen.ctaWarning {{name}} 还没有在监听:上面的命令运行起来之前,它不会回复 @提及。 {{name}} 尚未监听:上面的命令运行起来之前,它不会回复 @提及。 terminology over voice: 尚未监听 is preview.waiting's settled phrase
agentByo.listen.needs 粘贴前请确认(Mac 或 Linux):已装 Node 18+ 和 npm,并已安装且登录 {{tool}}。export 那几行只在当前终端窗口有效,所以四行要在同一个窗口里运行。 粘贴前请确认(Mac 或 Linux):已安装 Node 18+(含 npm),{{tool}} 已安装并登录。export 那几行只对当前终端窗口有效,所以四行都要在同一个窗口里运行。 voice: drops the doubled 已装/已安装 and stacked 并已安装且登录; 都 stresses all four lines, the step the QA walk missed
agentByo.mode.byoMeta 在终端里运行一条命令 只需一条终端命令 voice: a meta line under the option is a short noun phrase, like the source
agentByo.hosted.slow {{name}} 尚未签到。可以先 @ 它,启动后会处理消息。 {{name}} 尚未接入。可以先 @ 它,启动后会处理消息。 terminology (outside the 32, same page): 签到 was the only 签到 for "check in"; the bundle says 接入

Left as is, for a later sweep: the bundle still says 令牌 for the same credential in agentByo.errors.tokenEmpty and firstRun.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.md lines 8 and 50, in the separate commonly-skills repo). That predates the 09-23 ruling.

🤖 Generated with Claude Code

https://claude.ai/code/session_0157AG2wo8mJYqKezXNs48Ya

lilyshen0722 and others added 2 commits October 16, 2026 15:27
…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 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 _one plural variants, which are identical on origin/main (control) and which this PR does not touch (grep -c _one over 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

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