paperclip/packages/db/src/migrations
Dotta e89076148a
[codex] Improve workspace runtime and navigation ergonomics (#3680)
## Thinking Path

> - Paperclip orchestrates AI agents for zero-human companies
> - That operator experience depends not just on issue chat, but also on
how workspaces, inbox groups, and navigation state behave over
long-running sessions
> - The current branch included a separate cluster of workspace-runtime
controls, inbox grouping, sidebar ordering, and worktree lifecycle fixes
> - Those changes cross server, shared contracts, database state, and UI
navigation, but they still form one coherent operator workflow area
> - This pull request isolates the workspace/runtime and navigation
ergonomics work into one standalone branch
> - The benefit is better workspace recovery and navigation persistence
without forcing reviewers through the unrelated issue-detail/chat work

## What Changed

- Improved execution workspace and project workspace controls, request
wiring, layout, and JSON editor ergonomics
- Hardened linked worktree reuse/startup behavior and documented the
`worktree repair` flow for recovering linked worktrees safely
- Added inbox workspace grouping, mobile collapse, archive undo,
keyboard navigation, shared group-header styling, and persisted
collapsed-group behavior
- Added persistent sidebar order preferences with the supporting DB
migration, shared/server contracts, routes, services, hooks, and UI
integration
- Scoped issue-list preferences by context and added targeted UI/server
tests for workspace controls, inbox behavior, sidebar preferences, and
worktree validation

## Verification

- `pnpm vitest run
server/src/__tests__/sidebar-preferences-routes.test.ts
ui/src/pages/Inbox.test.tsx
ui/src/components/ProjectWorkspaceSummaryCard.test.tsx
ui/src/components/WorkspaceRuntimeControls.test.tsx
ui/src/api/workspace-runtime-control.test.ts`
- `server/src/__tests__/workspace-runtime.test.ts` was attempted, but
the embedded Postgres suite self-skipped/hung on this host after
reporting an init-script issue, so it is not counted as a local pass
here

## Risks

- Medium: this branch includes migration-backed preference storage plus
worktree/runtime behavior, so merge review should pay attention to state
persistence and worktree recovery semantics
- The sidebar preference migration is standalone, but it should still be
watched for conflicts if another migration lands first

## Model Used

- OpenAI Codex coding agent (GPT-5-class runtime in Codex CLI; exact
deployed model ID is not exposed in this environment), reasoning
enabled, tool use and local code execution enabled

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [ ] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [ ] If this change affects the UI, I have included before/after
screenshots
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-04-14 12:57:11 -05:00
..
meta [codex] Improve workspace runtime and navigation ergonomics (#3680) 2026-04-14 12:57:11 -05:00
0000_mature_masked_marvel.sql Expand data model with companies, approvals, costs, and heartbeats 2026-02-17 09:07:22 -06:00
0001_fast_northstar.sql Add agent runtime DB schemas and expand shared types 2026-02-17 12:24:38 -06:00
0002_big_zaladane.sql Add agent runtime DB schemas and expand shared types 2026-02-17 12:24:38 -06:00
0003_shallow_quentin_quire.sql Add issue identifiers, activity run tracking, and migration inspection 2026-02-19 09:09:26 -06:00
0004_issue_identifiers.sql Add issue identifiers, activity run tracking, and migration inspection 2026-02-19 09:09:26 -06:00
0005_chief_luke_cage.sql Add agent config revisions, issue-approval links, and robust migration reconciliation 2026-02-19 13:02:14 -06:00
0006_overjoyed_mister_sinister.sql Add agent config revisions, issue-approval links, and robust migration reconciliation 2026-02-19 13:02:14 -06:00
0007_new_quentin_quire.sql Add agent task sessions table, session types, and programmatic DB backup 2026-02-19 14:01:40 -06:00
0008_amused_zzzax.sql Add secrets infrastructure: DB tables, shared types, env binding model, and migration improvements 2026-02-19 15:43:43 -06:00
0009_fast_jackal.sql Add secrets infrastructure: DB tables, shared types, env binding model, and migration improvements 2026-02-19 15:43:43 -06:00
0010_stale_justin_hammer.sql chore: add assets/attachments DB migration, CLI docs, and lockfile 2026-02-20 10:33:36 -06:00
0011_windy_corsair.sql feat: add project_goals many-to-many join table 2026-02-20 13:43:25 -06:00
0012_perpetual_ser_duncan.sql Implement issue execution lock with deferred wake promotion 2026-02-20 15:48:22 -06:00
0013_dashing_wasp.sql Implement issue execution lock with deferred wake promotion 2026-02-20 15:48:22 -06:00
0014_many_mikhail_rasputin.sql feat: add auth/access foundation - deps, DB schema, shared types, and config 2026-02-23 14:40:16 -06:00
0015_project_color_archived.sql feat: foldable PROJECTS section in sidebar with color support 2026-02-23 09:14:08 -06:00
0016_agent_icon.sql feat: add agent icons with picker and collapsible sidebar section 2026-02-23 12:25:13 -06:00
0017_tiresome_gabe_jones.sql fix(db): cast REPEAT count to integer in migration 0017 2026-02-23 16:25:23 -06:00
0018_flat_sleepwalker.sql feat: add issue labels (DB schema, API, and service) 2026-02-25 08:38:37 -06:00
0019_public_victor_mancha.sql feat: add project workspaces (DB, API, service, and UI) 2026-02-25 08:38:46 -06:00
0020_white_anita_blake.sql feat: workspace improvements - nullable cwd, repo-only workspaces, and resolution refactor 2026-02-25 21:35:33 -06:00
0021_chief_vindicator.sql feat: per-issue assignee adapter overrides (model, effort, workspace) 2026-02-26 10:32:44 -06:00
0022_company_brand_color.sql feat: join request claim secrets, onboarding API, and company branding 2026-02-26 16:33:20 -06:00
0023_fair_lethal_legion.sql feat: join request claim secrets, onboarding API, and company branding 2026-02-26 16:33:20 -06:00
0024_far_beast.sql Add touched/unread inbox issue semantics 2026-03-06 08:21:03 -06:00
0025_nasty_salo.sql Persist issue read state and clear unread on open 2026-03-06 08:34:19 -06:00
0026_lying_pete_wisdom.sql Add worktree-aware workspace runtime support 2026-03-10 10:58:38 -05:00
0027_tranquil_tenebrous.sql Add project-first execution workspace policies 2026-03-10 10:58:43 -05:00
0028_harsh_goliath.sql feat(issues): add issue documents and inline editing 2026-03-13 21:30:48 -05:00
0029_plugin_tables.sql Merge public-gh/master into feature/plugin-runtime-instance-cleanup 2026-03-14 10:46:19 -05:00
0030_rich_magneto.sql Use asset-backed company logos 2026-03-16 09:25:39 -05:00
0031_zippy_magma.sql feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
0032_pretty_doctor_octopus.sql feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
0033_shiny_black_tarantula.sql Harden budget enforcement and migration startup 2026-03-16 15:11:34 -05:00
0034_fat_dormammu.sql Fix budget incident resolution edge cases 2026-03-16 16:48:13 -05:00
0035_marvelous_satana.sql Merge remote-tracking branch 'public-gh/master' into paperclip-subissues 2026-03-16 17:19:55 -05:00
0036_cheerful_nitro.sql Add instance experimental setting for isolated workspaces 2026-03-17 09:24:28 -05:00
0037_friendly_eddie_brock.sql Add workspace operation tracking and fix project properties JSX 2026-03-17 09:36:35 -05:00
0038_careless_iron_monger.sql Improve orphaned local heartbeat recovery 2026-03-20 06:05:15 -05:00
0039_fat_magneto.sql fix: renumber worktree merge history migrations 2026-03-20 17:23:45 -05:00
0040_eager_shotgun.sql fix: renumber worktree merge history migrations 2026-03-20 17:23:45 -05:00
0041_curly_maria_hill.sql fix: renumber worktree merge history migrations 2026-03-20 17:23:45 -05:00
0042_spotty_the_renegades.sql fix: renumber worktree merge history migrations 2026-03-20 17:23:45 -05:00
0043_reflective_captain_universe.sql fix: renumber worktree merge history migrations 2026-03-20 17:23:45 -05:00
0044_illegal_toad.sql Address Greptile review on board CLI auth 2026-03-23 08:46:05 -05:00
0045_workable_shockwave.sql Add the inbox mine tab and archive flow 2026-03-26 16:09:43 -05:00
0046_smooth_sentinels.sql fix(db): make document revision migration replay-safe 2026-03-31 08:09:00 -05:00
0047_overjoyed_groot.sql fix: make feedback migration replay-safe after rebase 2026-04-02 10:54:56 -05:00
0048_flashy_marrow.sql feat(routines): add workspace-aware routine runs 2026-04-02 11:38:57 -05:00
0049_flawless_abomination.sql fix: address greptile feedback for blocker dependencies 2026-04-06 09:03:13 -05:00
0050_stiff_luckman.sql Add project-level environment variables 2026-04-06 21:23:30 -05:00
0051_young_korg.sql Speed up issue search 2026-04-06 21:25:41 -05:00
0052_mushy_trauma.sql Generate execution policy migration 2026-04-07 17:43:10 -05:00
0053_sharp_wild_child.sql Persist non-issue inbox dismissals 2026-04-09 06:16:05 -05:00
0054_draft_routines.sql Add draft routine defaults and run-time overrides 2026-04-09 10:19:52 -05:00
0055_kind_weapon_omega.sql fix: harden heartbeat and adapter runtime workflows 2026-04-10 22:26:21 -05:00
0056_spooky_ultragirl.sql [codex] Improve workspace runtime and navigation ergonomics (#3680) 2026-04-14 12:57:11 -05:00