feat(webui): an organization's Models page offers one choice, use your models or its own, with a fresh read before each write; slice 4 follow-ups (#1873)
#2007
Settings layout slice 5 (lane settings-s5): an organization's Models page offers one choice, plus the items slice 4 (#2004) left open. Browser side only: packages/webui/src/public/bus.js, display.js, shell.css and tests.
One choice. "Where gets its models": "Use your models" or "Use its own model service" (shown disabled, Coming later). A "Now:" line says from the read which choice is in force. "Stop using your models" is the way back.
Safe write. Picking a choice reads the organization's plugins again first. If the read differs from the page, nothing is written and the page redraws. An open route draft refuses the switch. Outcomes are plain lines: Saved, Not changed, or Outcome unknown.
Restart state. While the organization needs a restart, Restart is the one primary button and the choice waits.
Service state, owner only. If the owner's model service is not set up, not answering or waiting on a restart, the page says so with a link to Model setup.
Slice 4 leftovers. The Move dialog and its result lines use display names. Step 3 names an organization the sidebar marks "can't start" before the first account. Sidebar marks read again after a switch. Messages shows "Details:" once. The Members addresses land on Agents.
Technical details shows the first-output timeout and rotation grace from the status read, or "the default" when unset.
No new route, bus verb, schema change, refusal code, grant or role. Nothing outside packages/webui/src/public and packages/webui/tests.
Tests
New: packages/webui/tests/settings-s5-browser.test.mjs (22 tests, red on the old base; each review fix test is red on the commit before it).
Lane gate on 0184f2cc2: 222 files, 2030 pass, 0 fail, 8 skip.
Lead check in a clean environment on the rebased tip: e6f6f5445 on base 37c385484: 498 files, 5149 pass, 0 fail, 8 skip.
Review
A fresh claude-opus-5-5 reviewer asked for nine changes. The lane fixed eight; the ninth (a new organization using the owner's models by default) needs a server change, and the re-checker verified that. A second fresh reviewer found two small new items, the lane fixed both, and the reviewer approved.
Left for later
A new organization does not use the owner's models by default (A6). The preset is offered only when some organization already rides, so it needs a server change.
An organization's own model service (A4).
The restart reason cannot say "started before your model service was set up", because no read carries that cause.
One rare focus case: leaving Models for Assistant, Projects or the board while the read after a save is out makes the next Models visit focus the Saved line.
The page halves of the #1873 backend reads, and layout slices 6 to 8.
## What changes
Settings layout slice 5 (lane settings-s5): an organization's Models page offers one choice, plus the items slice 4 (#2004) left open. Browser side only: `packages/webui/src/public/bus.js`, `display.js`, `shell.css` and tests.
- **One choice.** "Where <Org> gets its models": "Use your models" or "Use its own model service" (shown disabled, Coming later). A "Now:" line says from the read which choice is in force. "Stop using your models" is the way back.
- **Safe write.** Picking a choice reads the organization's plugins again first. If the read differs from the page, nothing is written and the page redraws. An open route draft refuses the switch. Outcomes are plain lines: Saved, Not changed, or Outcome unknown.
- **Restart state.** While the organization needs a restart, Restart is the one primary button and the choice waits.
- **Service state, owner only.** If the owner's model service is not set up, not answering or waiting on a restart, the page says so with a link to Model setup.
- **Slice 4 leftovers.** The Move dialog and its result lines use display names. Step 3 names an organization the sidebar marks "can't start" before the first account. Sidebar marks read again after a switch. Messages shows "Details:" once. The Members addresses land on Agents.
- **Technical details** shows the first-output timeout and rotation grace from the status read, or "the default" when unset.
No new route, bus verb, schema change, refusal code, grant or role. Nothing outside `packages/webui/src/public` and `packages/webui/tests`.
## Tests
- New: `packages/webui/tests/settings-s5-browser.test.mjs` (22 tests, red on the old base; each review fix test is red on the commit before it).
- Lane gate on 0184f2cc2: 222 files, 2030 pass, 0 fail, 8 skip.
- Lead check in a clean environment on the rebased tip: e6f6f5445 on base 37c385484: 498 files, 5149 pass, 0 fail, 8 skip.
## Review
A fresh claude-opus-5-5 reviewer asked for nine changes. The lane fixed eight; the ninth (a new organization using the owner's models by default) needs a server change, and the re-checker verified that. A second fresh reviewer found two small new items, the lane fixed both, and the reviewer approved.
## Left for later
- A new organization does not use the owner's models by default (A6). The preset is offered only when some organization already rides, so it needs a server change.
- An organization's own model service (A4).
- The restart reason cannot say "started before your model service was set up", because no read carries that cause.
- One rare focus case: leaving Models for Assistant, Projects or the board while the read after a save is out makes the next Models visit focus the Saved line.
- The page halves of the #1873 backend reads, and layout slices 6 to 8.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What changes
Settings layout slice 5 (lane settings-s5): an organization's Models page offers one choice, plus the items slice 4 (#2004) left open. Browser side only:
packages/webui/src/public/bus.js,display.js,shell.cssand tests.No new route, bus verb, schema change, refusal code, grant or role. Nothing outside
packages/webui/src/publicandpackages/webui/tests.Tests
packages/webui/tests/settings-s5-browser.test.mjs(22 tests, red on the old base; each review fix test is red on the commit before it).e6f6f5445on base37c385484: 498 files, 5149 pass, 0 fail, 8 skip.Review
A fresh claude-opus-5-5 reviewer asked for nine changes. The lane fixed eight; the ninth (a new organization using the owner's models by default) needs a server change, and the re-checker verified that. A second fresh reviewer found two small new items, the lane fixed both, and the reviewer approved.
Left for later
524132b42except the no-Details control case (#1873, lane settings-s5) 66255c9bf2