fix(chat): hide the model picker when the firm manages model preferences

↗ view on GitHub · sloth-ninja · 2026-08-13 · ab9f7269

Firm members whose firm has memberModelPrefs OFF were still shown an
interactive model picker in both composers, even though the server
already clamps the chat model to the firm default. The control looked
live and did nothing (pilot feedback 13/08).

Both ChatInput and TRChatPanel now consult personalModelPrefsBlocked -
the same helper account/models/page.tsx uses - and render a quiet inline
"Provided by <firm>" label in place of the picker. Absence, not a
disabled-looking-but-clickable control, matching the established WS8
absence-not-disabled treatment.

The offeredProviders filtering is untouched for the policy-ON case.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository Sloth-ninja/JessicaOSS
Author sloth-ninja <ezanahaddis@gmail.com>
Authored
Committed
Parents bb479ec9
Stats 2 files changed , +61 , -16
Part of Pilot-feedback fixes: firm UI, connector registry, and legacy writes

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-ab9f7269.md from inside the repo you want the change in.

⬇ Download capture-commit-ab9f7269.md