Public: anyone can read this; the crew can change it.

The terminal's About card opens the repository's crew with `C`: an admin puts an agent on it or takes one off after a confirm, as Settings › Crew does #7566

opened this

Closed 21d 15h ago

Pressing C on the terminal's About card now opens the repository's crew: each agent with its role, read through crewAsSeen the same way the API reads it. An admin of the repository who is a person can press a to type an agent's name or d to take the agent under the cursor off.

Notes

Held

holds this, : steward: sank 5 merge batches 23:40–01:10Z (tui-egress); released after a new push goes green

No rule sends it to review or lands it until it is released. A person can still ship it.

opened this

Pressing C on the terminal's About card now opens the repository's crew: each agent with its role, read through crewAsSeen the same way the API reads it. An admin of the repository who is a person can press a to type an agent's name or d to take the agent under the cursor off. Both show a confirm that says what will change, and only confirming calls addToCrew or removeFromCrew. Readers and agents (even ones on the crew) see the list but get no a or d key, and pressing those keys does nothing. The About card's key hints now include C crew.

  • New screen: src/tui/screens/crew.ts, built the same way as the deploys screen's members list (appmembers.ts).
  • Wording moved: Settings › Crew's sentences (on the crew, off the crew, not an agent, no such agent) now live in src/actions/crew_words.ts. The settings page and the terminal both read them, so the refusals match word for word. The page's own replies are the same as before.
  • Refusals the page never showed: crewRefusal also words the two refusals the page lumps into "No such agent on this forge.": an unverified email gets "Verify your email first.", and a non-admin gets "Only this repository's admin changes its crew."
  • Tests: test/tui-crew.test.ts covers:
    • the C crew hint;
    • the list with its roles;
    • adding only after a confirm, with the agent then showing in listCrewRoles (what Settings › Crew reads);
    • cancel changing nothing;
    • a person's name refused in the page's words;
    • removing after a confirm;
    • a reader and a crew agent getting no keys that change anything.

    I also ran tsc, design-lint, test/mcp-size.test.ts, and the 32 test files that touch About or Settings › Crew; all pass.

What I left out:

  • No dry run before the confirm: addToCrew has no preview, so a name that isn't an agent only gets refused after you confirm.
  • No MCP tool: the issue only asks for the terminal, and no MCP tool calls addToCrew/removeFromCrew yet.
  • No role changes: they stay on Settings › Crew, as the issue says.

To try it: ssh in using the command in FORGE_APP_SSH, open a repository you own, press I then C, then a, type an agent's name, and press Enter twice.

🤖 Generated with Claude Code

Closes #7443

3 earlier comments
commented

Pressing C on the terminal's About card now opens the repository's crew: each agent with its role, read through crewAsSeen the same way the API reads it. An admin of the repository who is a person can press a to type an agent's name or d to take the agent under the cursor off. Both show a confirm that says what will change, and only confirming calls addToCrew or removeFromCrew. Readers and agents (even ones on the crew) see the list but get no a or d key, and pressing those keys does nothing. The About card's key hints now include C crew.

  • New screen: src/tui/screens/crew.ts, built the same way as the deploys screen's members list (appmembers.ts).
  • Wording moved: Settings › Crew's sentences (on the crew, off the crew, not an agent, no such agent) now live in src/actions/crew_words.ts. The settings page and the terminal both read them, so the refusals match word for word. The page's own replies are the same as before.
  • Refusals the page never showed: crewRefusal also words the two refusals the page lumps into "No such agent on this forge.": an unverified email gets "Verify your email first.", and a non-admin gets "Only this repository's admin changes its crew."
  • Tests: test/tui-crew.test.ts covers:
    • the C crew hint;
    • the list with its roles;
    • adding only after a confirm, with the agent then showing in listCrewRoles (what Settings › Crew reads);
    • cancel changing nothing;
    • a person's name refused in the page's words;
    • removing after a confirm;
    • a reader and a crew agent getting no keys that change anything.

    I also ran tsc, design-lint, test/mcp-size.test.ts, and the 32 test files that touch About or Settings › Crew; all pass.

What I left out:

  • No dry run before the confirm: addToCrew has no preview, so a name that isn't an agent only gets refused after you confirm.
  • No MCP tool: the issue only asks for the terminal, and no MCP tool calls addToCrew/removeFromCrew yet.
  • No role changes: they stay on Settings › Crew, as the issue says.

To try it: ssh in using the command in FORGE_APP_SSH, open a repository you own, press I then C, then a, type an agent's name, and press Enter twice.

🤖 Generated with Claude Code

commented

The About card's C now opens the repository's crew. An admin who is a person can put an agent on with a or take one off with d, each after a confirm. This push addresses all four review points and the minor one. tsc is clean, and tui-crew and crew-settings-doors pass, 16 tests in all. I did not run the full suite; the forge's check does that on the push.

  • README: a "Crew at the terminal" paragraph sits next to the Flow only w paragraph. It covers the list, a, d, the confirm, who is offered the keys, and that refusals are worded by crewRefusal.
  • One source for the words: crewAdd and crewRemove in src/web/pages/crew-settings.ts now use crewRefusal(error), so the page and the terminal say the same thing. An unverified admin on the page now reads "Verify your email first." Other refusals follow crewRefusal's wording, so a non-admin now reads "Only this repository's admin changes its crew." The page used to say "No such agent on this forge." for both.
  • Tests:
    • An unknown name reaches CREW_NO_SUCH_AGENT.
    • An unverified admin in the terminal gets the verify-first sentence.
    • crewRefusal("not_found") is checked directly.
  • The d test: it no longer uses a conditional. It reads the drawn rows, asserts both agents appear, and presses j once per row above bolt's. The confirm text then has to name bolt.
  • Formatting: the keys line in src/tui/screens/about.ts is wrapped like its neighbours.

I added nothing else.

commented

The About card's C crew key is still there, and test/tui-egress.test.ts passes again. The whole terminal suite passes, 782 tests, and tsc --noEmit is clean.

What was wrong: adding C crew made the admin footer too long for the terminal width. The footer cut off its tail, so e egress (and c connections) disappeared for a site admin. The same footer render also hit a closed database in the test's teardown. That was the "Cannot use a closed database" error, and it went away with the fix.

The fix: the clone-URL key's label is now copy URL instead of copy the clone URL (src/tui/screens/about.ts). That frees enough room for C crew to sit next to v events and still leave e egress and c connections visible. I didn't touch any test. Nothing else referenced the old label.

Left for later: I did not do juniper's two non-blocking suggestions. They are a dry-run check that a name is an agent before the confirm, and crew add/remove through MCP. Each is a separate change.

commented

Closed: Owner, 2026-11-12: close or merge. 15 days open, three conflicts, changes requested by the owner. Not needed for v1.0.0.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs