Skip to content

feat(web): bring the Nyx model picker layout to global CSS - #83

Open
CarsonJF wants to merge 141 commits into
customfrom
t3/port-nyx-model-picker-global-css
Open

CarsonJF wants to merge 141 commits into
customfrom
t3/port-nyx-model-picker-global-css

Conversation

@CarsonJF

Copy link
Copy Markdown
Owner

What

Ports the model-picker block from t3-nyx-theme into the fork's app-wide stylesheet (apps/web/src/index.css) so every nightly gets it, rather than it living in a per-Tot theme.

Source credit: t3-nyx-theme — MIT, © 2026 Deepusleepy.

  • Search, provider icons, model list and effort row rearranged with flex/order.
  • Effort choices become a horizontal sliding pill using CSS anchor positioning.
  • @supports fallback gives a plain active state where anchor positioning is unavailable.
  • prefers-reduced-motion: reduce freezes the slide (production CSS verified: transition: 0s vs 0.32s normally).
  • Effort column is hidden for models with no levels via :has(button).
  • Favourite star glow uses the theme's --primary instead of a hard-coded purple.

Constraints honoured

  • Every rule stays scoped inside [data-slot="popover-popup"]:has([data-model-picker-content]); no other popover is affected.
  • Nyx's --nyx-shine / --nyx-art are substituted with existing fork tokens (--primary, --accent, --foreground, --border, --inset-shadow-*). No new palette, no glowing backgrounds, no aurora, no title-first sidebar rows.
  • Reads correctly in both light and dark themes.
  • No per-Tot theme CSS, settings.json, or t3_theme_set call was touched.

Verification

  • vp run check:changed cf6a37f51f: format pass, typecheck (2 packages) pass.
  • vp build in apps/web: pass.
  • Existing browser tests: ProviderModelPicker.browser.test.tsx + ComposerModelEffort.browser.test.tsx — 2 files, 9 tests pass.
  • Visual QA in Chromium: light/dark, effort present/absent, open state, pill tracked after selecting a different level, reduced motion.

Handoff

PR only — no merge, release, deploy or nightly trigger. T3Bot to review; merge only after Carson's explicit OK.

@CarsonJF
CarsonJF force-pushed the custom branch 2 times, most recently from 8d9a0b8 to 8666c44 Compare November 22, 2026 07:10
CarsonJF and others added 28 commits November 22, 2026 02:50
Groups, per-project default history, per-thread overrides and collapsed state persist to localStorage. A thread's group resolves from its override, else the project default in effect when it was created, so changing a default never moves older threads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Active threads resolve to a group (thread override, else the project default in effect when the thread was created) and render under collapsible group headers with rename and delete. The thread context menu gains Move to group, including No group and New group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New threads in the project start in the chosen group; threads created before the change keep their group. Logical projects with several members show Mixed until a value is picked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fork-only pipeline: rebases custom onto the newest upstream nightly tag, runs focused checks, builds the Windows x64 NSIS installer with the update feed pointed at this fork, and publishes it as a release. Lives only in new files so rebases never conflict on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Groups get an optional color and icon, set in a combined New/Edit group dialog (reuses the project icon picker). The sidebar header shows the icon or a color dot, a tinted background, and a colored label.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Thread groups lived in one browser's localStorage, so they never reached the user's other devices. They now live in server settings as ThreadGroupsState, changed through per-operation threadGroupOps patches that the settings service applies in order under its write lock. Concurrent edits from different clients merge instead of overwriting each other, and changes stream to every client through settingsUpdated. Writes need settings:write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolving a thread's group, merging groups across environments, and building ops live in @t3tools/client-runtime/thread-groups so web and mobile share one implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar reads groups from each environment's server settings and sends per-operation updates. On first connect, an environment with no groups imports the legacy localStorage groups once. Collapsed state stays local to each device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds independent macOS (arm64 + x64, self-signed so Squirrel.Mac updates verify) and Android (preview variant APK, fork keystore) jobs beside Windows. Publish attaches whatever built; a release with missing platforms is repaired by the next run instead of being skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mobile showed no thread groups, so threads grouped on desktop looked ungrouped and could not be organized from the phone. The thread list now renders collapsible group sections from server settings via the shared client-runtime helpers, the thread long-press menu moves a thread into a group or out of all groups, the group header long-press menu renames, recolors, re-icons or deletes a group, and project settings pick a default group. Collapse state is per device; edits need settings:write and are hidden without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eader

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Web and desktop can pick an image, which is downscaled to a small WebP and stored inline as a data URL. Web, desktop and mobile render it, and a group with an icon kind this build doesn't know now loses only the icon instead of failing to load.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ver MCP

Agents had no way to create, edit or delete sidebar groups or put a project in one. Two environment tools, t3_thread_groups_read and t3_thread_groups_update, read and apply group ops through the same server setting the sidebar syncs from. Ops naming a missing group or project fail the whole call instead of being silently dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macos-26 arm64 runners were out of capacity three runs in a row, so the macOS job was never picked up. The job builds both arches on one machine, so a manual run can now pick macos-15-intel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sparse checkout is a blob:none partial clone, and the rebase's batched lazy blob fetch from origin fails with 'not our ref'. Refetch the branch without a filter first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream replaced t3code/react-effect-budget with no-unreasoned-state-sync and stopped exporting projectMonogramColor, which mobile thread groups use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s on mobile

Drag groups in the sidebar (or Move up/down) to reorder; groups can take a two-color gradient on web and mobile; agents can set gradients and reorder groups over MCP; mobile shows a lettered badge for Lucide group icons instead of a dot.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…r gradients

Adds a free hex/alpha color (#rrggbb or #rrggbbaa) next to the named palette, a shared ColorPicker on web, and renders custom colors on web and mobile. Group gradients are more opaque and interpolate in oklch so they no longer look muddy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…up text color

Gradient stops go back to the 18% wash (custom alpha still scales it). Groups gain an optional textColor for the header label and count; Automatic keeps the theme color. Shown on web and mobile, editable on web, settable over MCP.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collapsed thread groups now show icons for their threads' approval, input, failed, working, and done states, with a count when more than one thread shares a state.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…m in the thread group MCP tools

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Upstream added a preparing sidebar status.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…anscribe-cpp files

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The packaged Electron run timed out at 120s on hosted macOS runners, failing the nightly intermittently.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OpenCode and others added 17 commits November 22, 2026 02:50
… Git SSH

The read-only BoopFace key exports GIT_SSH_COMMAND for every later step in
the job, so the force-push and main mirror hit GitHub with a read-only key
and the nightly stopped after its checks passed.
…dths (#73)

* fix(mobile): a Tot's face and identity survive fold and tablet widths

A Tot's thread lost its identity band on mobile: the feed resolved the Tot
from the thread id alone, so it never matched a thread the Tot owns through
its project the way the list row does. Hand the feed the Tot the thread
shell already resolves, and make it a required prop so a caller cannot drop
it again.

The live face also painted nothing until its WebView loaded, so the Tots tab
opened with an empty hero. Draw the still pose underneath and hand over on
the first load.

Tots rows reserve a 40dp slot for their face instead of overlapping the 24dp
glyph column, and the band truncates its name before its state.

Co-authored-by: OpenCode <opencode@local>

* feat(mobile): a Tot's thread band shows its state as a pill on an opaque base

The band now shares one state presentation with the Tots tab, and a translucent
--tot-bg or accent wash sits over the opaque canvas so the feed no longer shows
through it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mobile): the Tots tab is a grid of face cards

Two columns on a phone, three on an unfolded Fold, four on a tablet. Width comes
from the page's settled width (Android caps scroll content at 720dp) and rows are
laid out explicitly so an exact fit never wraps the last card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: OpenCode <opencode@local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#77)

A watched run that ended while its thread still held awaited background work was read as completed, so TotService woke the creating Tot with Completed: <thread> before the work was done. The nightly repair paid for four of those wake-ups.

Read such a shell as waiting, reusing backgroundWorkHoldsCompletion, the same rule the MCP thread status uses. The watch then survives to the real settle and reports Completed exactly once. Questions, approvals and failed runs still report as before.

Remote followers keep the old timing: a forwarded thread wait exposes the run status but not pending background tasks, so it cannot tell awaited work from a finished run.

Co-authored-by: OpenCode <opencode@local>
The fork's thread-group picker import pulls expo's Node-only async-require
setup into this jsdom test, where __DEV__ is undefined.
Upstream added a provide to the routes pipe, which put it over pipe's 20
arguments; the Tot services now provide as one layer. Upstream's new
background-wait test also needs the not-a-Tot layer the toolkit reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Custom databases recorded migration 99 as ScheduledTaskCreatedByTot. The
.4941 repair moved it to 101 behind upstream's 099/100, so the migrator
saw 99 as BackgroundRecoveryIndexes and refused to start every existing
database.

ScheduledTaskCreatedByTot is 99 again and upstream's 099-102 move to
100-103. Every migration from 99 on is idempotent, and startup (and the
update preflight) rewinds a history recorded in another order, such as a
fresh .4941 custom database or stock upstream, and replays it in ours.
CUSTOM.md records the invariant for future rebases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ettle

The settlement sweep treated a Tot's conversation like any idle thread, so a
quiet Tot dropped out of the sidebar after the inactivity window. A Tot's own
thread now settles automatically only when that Tot has autoSettle on; absent
means off, so existing Tots stop settling too. The switch is in the Tot's
settings panel on web. Explicit settles, such as Start fresh, are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start fresh settles a Tot's thread and points the Tot at a new one, but
t3_thread_send sent to whatever id it was given, so an agent that had kept
the old id (a new Tot told about WorkBot) replied into WorkBot's settled
thread. A send to a tot: thread that is no longer its Tot's current thread
now goes to the current thread, or fails with a clear error when the Tot is
off. The sent run is watched on the thread it actually went to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#77 made a completed run that still holds awaited work read as waiting, but
the watcher only looked at a thread on run, request and thread events, so
it never looked again when the work ended: the Tot got no Completed, or a
silent end when the thread later settled. It now also looks on the events
ThreadSettlementService treats as work ending (provider-thread, turn-item
and subagent updates that end work, and cancelled background work).

A sent watch whose run was passed by a later run, such as the wake the
finished work starts, now ends instead of leaking, and reports Completed
when that run was waiting on work. Idle-compaction runs no longer wake
watching Tots with a Completed of their own.

The new tests drive the real domain-event stream instead of calling
observe directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream replaced updateMobilePreferencesAtom with the saveMobilePreferences
command, so the Tots appearance switch and collapsed thread groups stopped
typechecking after the rebase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t one

t3_thread_send resolved a Tot's settled former thread to its current one,
but t3_thread_send_attachments still sent to the literal id. Both now use
one resolver: a former Tot thread goes to its Tot's current thread, or
fails with thread_not_sendable when that Tot is off. The attachment send
rechecks the caller's limits and link on the thread it resolved to, since
the tool's access check ran on the thread it was given.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ebase

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the model-picker block from t3-nyx-theme (MIT, (c) 2026 Deepusleepy) into the fork's app-wide stylesheet so every nightly build gets the rearranged search/provider/list/effort layout, anchor-positioned effort pill, favourite-star glow and no-effort hiding. All pigments resolve through existing semantic tokens, with an @supports fallback and a reduced-motion freeze.
@CarsonJF
CarsonJF force-pushed the t3/port-nyx-model-picker-global-css branch from bb78c1b to 5d84ee2 Compare November 22, 2026 09:10
@CarsonJF
CarsonJF force-pushed the custom branch 10 times, most recently from ace5e45 to 6b3cddd Compare November 25, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant