Show the `coder` plugin settings menu in the `clai2` web UI

Merged
MP
2mo ago
+499-703

Part 31 of the clai2 web UI stack (… → #10333 → this PR). Based on #10333. No linked issue: requested by the CLAI maintainer.

Why. One PR per plugin: coder now declares its settings menu (settings_menu(), #10312) instead of running termflow widgets in configure(). The same menu opens in the terminal and in the web UI's plugins panel (#10315), where its steps show as dialogs. This is the last plugin port: every built-in plugin's menu now works in the web UI.

What changes

  • The Agent folders row → action. The bespoke full-screen folder editor and directory browser are rebuilt as Dialogs loops:
    • the folder list with "+ Add…" options and Done;
    • per folder: Edit, Replace by browsing, Remove, Back;
    • edits with dialogs.text(check=...);
    • a directory browser as a dialogs.choose loop ("Use this directory", "..", "Go to path…", Project, Home, subdirectories).
    • Filesystem reads stay off the event loop. The editor's hotkeys and notice rows become dialog descriptions.
  • Removed: the console.is_terminal short-circuit and run_coder_flow.
  • Panel matches terminal: the web panel shows the 4 rows the terminal menu shows, rather than every field of the settings model.
  • Its tests drive the actions with ScriptedDialogs (#10316) and the terminal path with scripted runners. PLUGINS.md and the README say the menu also opens in the web UI.

Verification.

  • Ported in its own herdr worktree and stacked here. The porting agent got 100% branch coverage of the plugin and clean pyright and ruff, and walked the menu in tmux and a headed browser without completing a real sign-in.
  • With all 13 ports stacked: 941 tests pass across every ported plugin's suite plus web, loader, keys, sign-in, dialogs, reload, startup imports, set menu and telemetry. Pyright is clean on all of pydantic_clai2.
  • I re-checked it in a headed browser against an isolated clai2 --web -m test, with the OS keychain blocked: the rows render, each action's first dialog opens, Esc backs out, and there are no page errors.

What changes for existing users. The terminal menu keeps its rows, with the differences above. The menu now also works in the web UI.

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
  • PR title is fit for the release changelog.