Repository navigation
refactor(desktop): rename workspaces to tabs - #169
Merged
Merged
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…he drain (#150) Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…#148) - Group sidebar threads by project, status or priority and order by last updated or created, from a dense display menu shared with Threads. - Thread statuses follow Linear: enqueued and working follow the runs; review, settled and cancelled are set only by the user. An app.db migration derives existing statuses again, keeping user-set ones. - Threads page: renamed from All Threads, dense menus, Untitled Group. - Sidebar toggles at once on every page; frames resize in the same frame. - Quieter frame header and session motion tuned under 300ms. Co-authored-by: prem315 <prem.patel3105@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th settings RPC (#151) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#152) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…hind a notice (#153) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#154) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… Unreleased Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: show project MCP servers as sessions merge them
settings.read now returns the merged mcp.json servers the harness
connects to, and the project settings page draws its rows from them, so
an override or entry the runtime rejects no longer shows the wrong state.
Turning on a user server that is off in the user file now writes
{ enabled: true } instead of dropping the override. The connectors
section says only that mcp.json has errors; Advanced keeps the detail.
* fix(server): name the test model in the CodeWork fixtures; run live tests on Ubuntu
Since a run needs a model named in settings when no provider is configured,
the scripted CodeWork the app tests start never ran a prompt, so most suites
failed in their shared setup. The fixture now writes the test model into its
home, and the recovery suite names it in the settings it writes itself.
The live machine suites use Ubuntu only: the long-lived machine is `ubuntu`
in place of the retired `fedora`. Their artifacts are regenerated for that
name and for the current thread statuses.
* feat: read-only Skills in project settings, per space
Project settings list the skills sessions in each of the project's spaces
see, read with the skill plugin's own discovery: a host checkout each time,
a sandbox only while it runs. The app keeps the last read per space, so a
stopped sandbox shows it with when it was synced and is never woken.
- harness: `Skill.list(spaceId)`; discovery takes a directory
- codework: `skill.list` RPC, with the sandbox's driver, id and status
- app server: `projects.skills`, cached in a `skill` table
- web: one group per space (main, worktree, sandbox), a placeholder that
grows into the list, and long lists folded behind Show More
- settings for a project with no host folder say why General, MCP and
Advanced are not available
- app migrations are one `init`, as nothing older exists to upgrade
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat: space daemon plugins with git and skills daemons Space daemons keep a space's state current from inside CodeWork instead of clients pulling it: one instance per space, started on a drain's mount, fed the events of runs in that space, reading the space only through I/O it borrows while a drain or a short handover already holds the sandbox, so a daemon never wakes one. - plugin: the daemon contract (scope, events, methods, start with io.use, work, events.on/publish, handle). - harness: the space host (lifecycle, attribution between space.mount.attached and detached, handover holds, idle stop, last-event replay, daemon.call), controller borrow/held/hold, the git daemon (status push, per-file diff, patch cache for detached spaces, untracked folders as one entry) and the skills daemon. - codework: event.subscribe types filter with replay, daemon.call; the skill.list pull is gone. - apps/server: space_state mirror fed per machine, sync/state notices; the Skills section reads the mirror and refreshes live. - E2E on host, Daytona, Vercel, a relink across all three, a CodeWork server on an OrbStack machine with and without Daytona, and the real CLI server; artifacts under __artifacts__/. * docs: note space daemons under Unreleased * fix(harness): harden space daemons after peer review - Borrow pins only a transport still built: an invalidated one is never rebuilt by a daemon, and wake keeps the transport while a handover holds it. - A daemon's work runs in its own scope, so a failed start stops it. - Idle stop waits for pending work instead of interrupting it. - Git daemon: untracked names stay NUL-separated end to end (no path injection through a newline in a name), git errors fail diff instead of returning no changes, C-quoted patch paths are decoded, sections are split by a record of their own, and a shell that cannot run publishes available: false. * docs: fold the unreleased Skills entries into one * chore(server): fold space_state into the single init migration Nothing is in production yet, so the app keeps one init migration: the space_state table replaces the skill table there instead of a second migration creating one and dropping the other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its rows are keyed by machine and space, like the other per-machine tables. Edited in the single init migration, as nothing is in production yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l> (#158) The desktop's database moves from Electron's userData folder to <CodeWork home>/desktop/<channel>/app.db, beside the CLI's data. The app server resolves the path with the built-in server's home logic and creates the folder; Electron main passes only CODEWORK_CHANNEL (latest, dev or canary from the packaged package.json, `local` from the repo). CODEWORK_DATABASE still names a file directly, for tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…own data folder (#159) Running from the repo, Electron took the package name, so the app and its data folder were `@codeworksh/desktop`. Main now names an unpackaged run "CodeWork Local" (the repo launcher's Dock name matches) and sets Electron's userData to one folder per build in Application Support: `codework` for latest, `codeworkcanary`, `codeworkdev` and `codeworklocal`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(harness): start a local space's daemons on a daemon call A space's daemons stopped after an idle hour, and only a run's mount started them again, so a host project's diff was unavailable until the next run. Reading a local space wakes nothing, so a daemon.call there now starts its daemons and waits for the start; the same idle timer stops them again. A sandbox space still never starts from a call. * feat: Git Changes widget for a space's working tree A desktop widget showing the working-tree changes of the space a thread is placed in, from the space's git daemon: - app server: changes.status (the git daemon's mirrored status), changes.diff (patches over daemon.call on the space's machine) and changes.space (folder, kind, environment and the threads sharing the space); the thread line carries its spaceId - widget: every changed file stacked and folded by default, per-file and fold-all folding with a short slide, inline or split diffs rendered with @pierre/diffs in a worker pool, a file list and arrow navigation, and a Space line naming the folder, branch, environment (Local, Worktree, <Driver> Sandbox), freshness and the threads sharing the space - stays smooth with hundreds of files: off-screen diffs are skipped, rows are memoized, data, fold state and scroll survive switching tabs, and a skeleton fades in only for a slow cold open - opened from a thread's More menu as Git Changes - Skills in project settings: the placeholder fades in only for a slow load and the list is kept between visits * fix(harness): per-file patch caps and a status refresh on diff in the git daemon From a 1000-file Daytona benchmark: - The cache kept nothing once patches passed 1 MB, so a let-go sandbox's diff failed. Each file is now sized from the status line counts and read only if it fits; a file that does not gets an empty patch with its counts (later files keep theirs), untracked files over 5 MB are skipped, a file asked for alone is read by its real size, and an over-cap result says truncated. Live reads cap at 10 MB the same way. - A diff request marks the status for refresh: a local space re-reads, a sandbox not held by a run stays dirty for its next mount (never woken). - A repository with no commits published head: undefined, which the event feed cannot encode; head and branch are left out instead. - Literal pathspecs, and the over-200 untracked count reads NUL-separated names. * feat(web): Git Changes error row, per-file loads and large diffs - A slim warning row under the Space line when diffs are unavailable (with the reason and Retry), sliding in and out; the file list stays. - "The Sandbox Is Stopped" only when it is; otherwise diffs appear during the next run. A failed diff is retried on open, when the frame is shown and when a run in the space starts or ends. - A file left out of the bulk diff is read alone when unfolded, shown only if its counts match. - Diffs over 200 lines are virtualized; past 500k characters word diff and highlighting are off. - A/M/D letters beside the status-coloured names. - changes.space re-reads only for its own space, sessions and threads, debounced; a hidden frame does not fetch the diff. 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>
…164) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Window groups in the desktop app behave like browser tabs, so the table, RPC, routes, settings page and copy now say "tab". The stored tab text becomes `label` to avoid `tab.tab`. All app server migrations fold into the single init migration; existing app.db files must be recreated. 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.
Window groups in the desktop app behave like browser tabs, so "workspace" is renamed to "tab" across
apps/.workspacestable →tab; itstabcolumn (the label the tab shows) →label. All app server migrations are folded into the singleinitmigration, so an existingapp.dbmust be deleted and recreated.workspaces.*→tabs.*;Workspace*types →Tab*;Server.WorkspaceError→Server.TabError.wm/tabs.ts, route/tabs/$tabId, Settings › Tabs at/settings/tabs, Shift-click opens a session in a new tab, copy updated throughout.packages/is untouched; it never used this concept.Testing
vp checkandvp run typecheckpass.deskandschemaartifacts updated (rename andmachinecolumn order only).reads.test.ts"session backend forwards…" fails identically onmain.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.