Repository navigation
feat(web): frame menu, sidebar current and color, project settings with settings RPC - #151
Merged
Merged
Conversation
…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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Frame menu
Project settings in the session frame
maintag; paths are shortened with~.{ "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.settings.jsoncandmcp.jsonedited 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.Core and app server
settings.read,settings.writeandsettings.setin CodeWork read and edit a project's or the user'ssettings.jsoncandmcp.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.readreturns the parsed file and, forsettings.jsonc, what applies where the file sets nothing.project.remotein CodeWork readsoriginof 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.projects.renameandprojects.remote, and reads a project's directories (projects.spaces) from the synced space table.Sidebar
apps/serverread), and refreshes on a thread color change.Menu motion
menuSurface, which the connector menu uses too.Unused exports in packages
vp run knip:checknow checks unused exports inpackages/aikit,codework,harnessandplugin, not only the apps.X.memberthrough 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 useimport * as X. With that change knip sees real usage, and what it then reported was unused.export, and anything also unused in its own file is deleted. Entry exports stay public because the packages are published, soincludeEntryExportsstays off. The one public removal is harness's duplicateGlobal.defaultLayer.LockErrorstays exported (@public) becauseLock.acquire's emitted declarations need it.Testing
knip change:
vp run knip:check,vp checkandvp run typecheck(with the declaration build) pass; package tests match the base (the same 16 fail withoutmodels.gen.jsonand live credentials).vp checkandvp run typecheckpass.New server e2e test for the settings calls (
server.settings.jsonartifact): 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,authis 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
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.