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

The terminal's People screen suspends or unsuspends an account with `s` and a confirm, as MCP `account_suspend` does #7267

shipped production is serving it opened this has it
opened this

For: the owner who sees an account misbehaving and is in the terminal. Trust means stopping it, sessions and tokens at once, is one key away.

suspendAccount and unsuspendAccount are reached from /settings/people and MCP account_suspend (src/http/mcp/tools/account_suspend.ts). The terminal's People screen (src/tui/screens/people.ts) only changes roles with r.

Done:

  • [ ] Each row on the People screen says when an account is suspended.
  • [ ] s on a row asks to confirm in words that say their sessions and tokens stop at once, then suspends; on a suspended row it unsuspends after a confirm.
  • [ ] Yourself, another admin, an agent and the only owner of an organization are refused with the same words MCP uses (ADMIN_WORDS, lastOwnerSays), and nothing changes.
  • [ ] A new test/tui-people-suspend.test.ts: suspend after a confirm and the person's session reads as signed out; unsuspend; yourself is refused; esc changes nothing.

Files: src/tui/screens/people.ts, one test. Risk: low; reuse the actions.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs