Skip to content

feat(web): frame menu, sidebar current and color, project settings with settings RPC - #151

Merged
sanchitrk merged 9 commits into
canaryfrom
claude/desktop-dev-5d0aea
Nov 11, 2026
Merged

sanchitrk merged 9 commits into
canaryfrom
claude/desktop-dev-5d0aea

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Frame menu

  • Every frame's Move button becomes a ⋯ menu: Move (workspaces with ⌘N, then New Tab).
  • Session frames add Status, Priority, Group and Color, each showing its current value, then Settings below a divider.
  • The menu sizes to its content, and its row labels line up whatever the mark. The session frame keeps the thread list mounted, so the menu opens complete instead of growing by its rows.

Project settings in the session frame

  • ⋯ › Settings swaps the thread for its project's settings, titled "‹project› › Settings". Back to Thread, Esc (this frame only) or the menu row returns; the thread stays mounted underneath.
  • A banner with the project's tile and its name as the page title. The name is a field: type, then Enter or leave it to save; Esc puts it back.
  • Repository: the remote URL (read-only, with copy) and the host directory with a main tag; paths are shortened with ~.
  • General: default model and reasoning in one row, and retries, a whole number 0 or more whose placeholder is the value the project inherits.
  • MCP Connectors: servers grouped under User and Project. A user server's switch writes a project override ({ "enabled": false }) and removes it when turned back on. Manage ↗ opens the MCP settings; an Add Connector row opens a searchable menu that shows No Connectors Found and links to Manage until the directory exists.
  • Advanced: settings.jsonc and mcp.json edited in place as text. A save is refused when the file changed on disk (Reload fetches it again) or when the runtime would reject it; the reason shows under the editor.
  • Headings and rows follow Linear's settings type and spacing, a step quieter, with title case labels. Switching threads keeps the page whole: it waits for the next project's data, then swaps in one render.

Core and app server

  • settings.read, settings.write and settings.set in CodeWork read and edit a project's or the user's settings.jsonc and mcp.json: the file a session in the project's main checkout reads. Writes keep comments and formatting, run under the settings lock, and are refused when the runtime would reject the result; a whole-file write is also refused when the file changed since it was read. settings.read returns the parsed file and, for settings.jsonc, what applies where the file sets nothing.
  • The CLI's settings edits now go through the same harness module. Writes no longer leave an empty temp directory beside the file, and removals are formatted.
  • A project that is not a repository now has a main checkout too.
  • project.remote in CodeWork reads origin of the project's main checkout on the host, with credentials taken out of http(s) URLs; null for a plain folder, a sandbox checkout or no origin.
  • The app server forwards the settings calls, projects.rename and projects.remote, and reads a project's directories (projects.spaces) from the synced space table.
  • The frame header takes the project name from the list, so it follows a rename.

Sidebar

  • The focused session's row gets a background, and other sessions shown on the workspace get full-strength text. Both keep one font weight.
  • A thread's color washes in from the row's right edge, so it shows through a run and takes no room.
  • The sidebar now takes the main thread's color over the session's, as All Threads does (apps/server read), and refreshes on a thread color change.
  • Display menus (sidebar and Threads toolbar) show their current grouping and ordering.

Menu motion

  • Menus slide 4px out of their trigger and fade in, with no scaling, then leave by fading.
  • Submenus slide out of their row toward the side they open on, and close at once.
  • Both respect reduced motion.
  • The dropdown surface and motion live in one shared menuSurface, which the connector menu uses too.

Unused exports in packages

  • vp run knip:check now checks unused exports in packages/aikit, codework, harness and plugin, not only the apps.
  • knip can't follow X.member through a module that re-exports itself (export * as X from "./x.ts" inside x.ts), so it flagged every member (655 findings). Modules other than package entry points drop that line; importers use import * as X. With that change knip sees real usage, and what it then reported was unused.
  • Those exports lose export, and anything also unused in its own file is deleted. Entry exports stay public because the packages are published, so includeEntryExports stays off. The one public removal is harness's duplicate Global.defaultLayer. LockError stays exported (@public) because Lock.acquire's emitted declarations need it.

Testing

  • knip change: vp run knip:check, vp check and vp run typecheck (with the declaration build) pass; package tests match the base (the same 16 fail without models.gen.json and live credentials).

  • vp check and vp run typecheck pass.

  • New server e2e test for the settings calls (server.settings.json artifact): writes keep comments, stale versions and invalid values are refused and leave the file alone, a broken file is read with its error, project MCP overrides are checked against the user file, auth is refused in a project file. Server, CLI MCP and plugin command suites pass.

  • Checked in the Electron app against a live provider: model, reasoning and retries writes, MCP switches in both directions, the Advanced editor (save, refusal, changed-on-disk and Reload), the Add Connector menu with mouse and keyboard, and the Manage links.

  • Earlier: 9 colored sessions, 2-way and 3-way splits, the sidebar grouped by status, and switching threads of two projects with settings open while recording every frame.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

sanchitrk and others added 7 commits November 10, 2026 22:40
…nu motion

- Frames get a ⋯ menu: Move (workspaces, New Tab) and, for sessions,
  Status, Priority, Group and Color with their current values. The
  session frame keeps the thread list mounted so the menu opens whole.
- Sidebar marks the focused session with a background and other
  sessions on screen with full text, at one font weight; a thread's
  color washes in from the row's right edge.
- The sidebar takes the main thread's color over the session's, as All
  Threads does, and refreshes on a thread color change.
- Display menus show their current grouping and ordering.
- Menus slide out of their trigger without scaling; submenus slide out
  of their row toward the side they open on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The session frame menu gets Settings below a divider. It swaps the
thread for its project's settings, every section stacked on one page,
titled "<project> › Settings". Back to Thread, Esc or the menu row
returns; the thread stays mounted underneath, so it comes back as left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Project settings open on a banner: the project's folder tile, its name
  as the page title, and its folder and machine. The name is a field:
  type, then Enter or leave it to save; Esc puts it back. The new name
  shows until the rename syncs back.
- The placeholder sections leave the page; features return one by one.
- projects.rename forwards to CodeWork's project.rename through the app
  server; the widget contract mirrors the call.
- The frame header takes the project name from the list, so it follows
  a rename instead of keeping the name the thread opened with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Project settings gain a Repositories section: the remote URL the
  project was cloned from, with a copy button, and its main checkout.
  Headings and rows follow Linear's settings type and spacing, a step
  quieter; the banner shows the project's folder only.
- Switching threads keeps the page whole: it waits for the next
  project's directories and remote before swapping in one render.
- project.remote in CodeWork reads origin of the project's main checkout
  on the host, with credentials taken out of http(s) URLs; null for a
  folder, a sandbox or no origin. The e2e test covers it.
- projects.remote and projects.spaces (directories from the synced space
  table) through the app server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
settings.read, settings.write and settings.set edit a project's or the
user's settings.jsonc and mcp.json. Writes keep comments and formatting,
run under the settings lock, and are refused when the runtime would reject
the result; a whole-file write is also refused when the file changed since
it was read. settings.read returns the parsed file and, for settings.jsonc,
what applies where the file sets nothing.

The CLI's settings edits now share the same harness module. Writes no longer
leave an empty temp directory beside the file, and removals are formatted.
A project that is not a repository now has a main checkout too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The project settings page gains General (default model with reasoning,
retries), MCP (a switch per server, project overrides for user servers) and
Advanced (settings.jsonc and mcp.json edited in place) sections, through the
app server's settings calls. The repository section shows the host directory
with a main tag, paths are shortened with ~, and rows share one style.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The project settings MCP section becomes MCP Connectors: servers are grouped
under User and Project labels, a Manage link opens the MCP settings, and an
Add Connector row opens a searchable menu that links to Manage while the
directory is empty. Commands and URLs read as code, servers that are off read
quieter, and labels use title case.

The dropdown menu's surface and motion move into a shared menuSurface, which
the connector menu uses too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sanchitrk sanchitrk changed the title feat(web): frame menu, sidebar current and color, project settings in the session frame feat(web): frame menu, sidebar current and color, project settings with settings RPC Nov 11, 2026
sanchitrk and others added 2 commits November 11, 2026 15:33
Only the settings sections use it now, which knip reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip:check:exports now covers packages/aikit, codework, harness and
plugin. knip cannot follow member access through a module that
re-exports itself as a namespace, so it reported every member of those
modules as unused. Outside package entry points, modules no longer do
that; importers use `import * as X` and barrels `export * as X`.

The exports knip then reported were unused: their `export` is removed,
and declarations also unused in their own module are deleted. Entry
exports stay public (the packages are published), except harness's
duplicate `Global.defaultLayer`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sanchitrk
sanchitrk marked this pull request as ready for review November 11, 2026 10:28
@sanchitrk
sanchitrk merged commit fe449e0 into canary Nov 11, 2026
1 check passed
@sanchitrk
sanchitrk deleted the claude/desktop-dev-5d0aea branch November 11, 2026 10:28
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