Repository navigation
feat(sidebar): place owned threads with their owner - #762
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
50a2991 to
7b2a751
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faa40fe866
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Show owned threads under their orchestrator or in a destination project group, and keep them reachable when the owner is unavailable. Resolve creator labels from the recorded origin. GPT-6.2 Sol high via Codex in LastCode. Carry-Fix: #751 Carry-Group: incubator Carry-Observation: Sidebar ownership and attribution extend the placement graph and creator menu changes already carried in Incubator.
Open the owner through normal sidebar navigation and keep direct failures visible on a collapsed destination group. GPT-6.2 Sol high via Codex in LastCode. Carry-Fix: #751 Carry-Group: incubator Carry-Observation: Sidebar ownership and attribution extend the placement graph and creator menu changes already carried in Incubator.
Keep delegated work out of the normal jump list and allow typed searches for orphaned tasks. Use the existing translated creator label when an owner has no title. GPT-6.2 Sol high via Codex in LastCode. Carry-Group: incubator Carry-Fix: #751
Remove the static fallback-label assertion. The focused projection and navigation regressions continue to cover changes in behavior. GPT-6.2 Sol high via Codex in LastCode. Carry-Group: incubator Carry-Fix: #751
05245c8 to
54f369a
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Part of #751 ## Problem Agents create throwaway projects for evaluations and other one-off runs with `t3_project_create`. Today these land in the same project lists as real work and pile up in the sidebar and pickers. ## What changes Agent-created temporary projects are recorded with their creating thread and hidden by default. **Keep project** makes one visible with the rest and leaves its workspace and creating thread intact. PR D owns removal at wrap-up. ## Paths - **Create.** Every agent registration records the owner. Pass `temporary: true` to `t3_project_create` when registering a throwaway project by path or title. - Local registration records the authenticated calling thread as owner. - Linked registration records the authenticated sender, from the same creator lookup as thread launch. - Temporary registration requires a thread. A standalone MCP client can still register an ordinary project. - Clone only creates the checkout. Register the cloned path with `t3_project_create` in the same environment to set owner and marker. - **Keep.** `t3_project_update({ projectId, keepTemporary: true })` or the **Keep project** UI action, which makes the same transition under normal project write rules. The marker clears and the owner stays, so the project drops out of temporary-owner queries immediately. - **Query.** `t3_project_list` and `t3_project_read` return owner and temporary status. `t3_project_list(temporaryOwner: { environmentId, threadId })` filters to one thread's temporary projects. PR D can call `ProjectService.listTemporaryOwnedBy(owner)` in each environment to enumerate them. ## Storage Project lifecycle events and the SQLite project projection store `{ owner: { environmentId, threadId }, temporary?: true }`. The fields are absent for earlier projects. Client create and update payloads cannot set ownership or the marker. ## Client scope The LastCode sidebar hides temporary project rows by default and keeps their threads in the sidebar and keyboard navigation. **Show temporary projects** reveals the rows for the current client session. Older settled threads remain available through the existing sidebar paging control. On web and desktop, the command palette, new-thread and draft project pickers, and automatic draft destinations skip hidden temporary checkouts. The palette filters picker candidates before grouping, and its contextual actions use the full project groups. This keeps mixed-repository checkouts out of starting-work choices while the current thread can still use its own project. Direct links and thread lookups remain available. A draft opened through a temporary checkout keeps that checkout in its machine choices. The existing Project Settings panel offers **Keep project** for each temporary checkout with project write access. The rest of Settings continues using its existing groups and selection. Four new strings ship in all ten web catalogs. The default sidebar, mobile, PR and Issues filters, scheduled tasks, prompt links, and broader Settings changes are parked in draft #766. That draft preserves the complete previous head and tracks the selector candidates from #765. Provider adapters and the Electron shell use their existing paths. ## Verification - Quick CI and same-base carry replay passed on `b1a13da402c102b56fa975d000766f0d746ccd4d`. After reconciling the thread-ownership sidebar changes from #762, 105 focused tests passed. GitHub twice hit a missing callback in a fork-owned browser test fixture. The fixture now supplies it, and all 20 tests in that file passed. - Local review: 1 round with Codex Terra (xhigh), not clean. The two findings on `bd1d85a60826a0122a4708477b4efcf7b069afdc` were fixed with regression tests. - Focused checks passed for registration, ownership query, Keep, sidebar and picker behavior, and locale catalogs. The changed-file run passed during the split and was uncached because the review fixes changed files during the run. - Isolated web QA opened a temporary checkout through its thread link while the project row was hidden, exercised reveal from the LastCode new-thread picker and palette, and opened that checkout’s Project Settings from the palette. Keep removed the control and cleared the marker in the isolated database while retaining ownership. - Model-facing text and tool schemas are identical to the earlier head. The tool list is 85,690 bytes, up **377 bytes** from 85,313 on the current base. All six focused samples passed on `dafc448b926414a3cc75d457bef104e9bfdd2fb3`. The subsequent sidebar rebase preserved the tool text and schema. The targeted throwaway registration case improved from 0/2 to 2/2. Ordinary registration and the archive-via-update control each passed 2/2 on the candidate. The broader pre-rebase run passed 270 of 292 completed samples, with nine additional errors. All three project-tool cases passed in the broad run. ## Screenshots Captured in the LastCode sidebar with isolated fixtures. | Base | Temporary project hidden by default | | -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | |  |  | | Revealed for this session | Visible after Keep | | ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | |  |  | The LastCode sidebar keeps the thread available while its temporary project row is hidden.  <details> <summary>35 upstream-owned files touched</summary> The full snapshot touched 76 upstream-owned files. A path is upstream-owned when `git cat-file -e origin/main:<path>` succeeds. Counts use `git diff --numstat`. | File | Added | Removed | | -------------------------------------------------------------- | ----: | ------: | | `apps/server/src/mcp/toolkits/project/handlers.ts` | 21 | 14 | | `apps/server/src/mcp/toolkits/project/tools.ts` | 8 | 3 | | `apps/server/src/orchestration-v2/ProjectCommands.ts` | 6 | 0 | | `apps/server/src/orchestration-v2/ProjectStore.ts` | 10 | 0 | | `apps/server/src/orchestration-v2/ThreadLaunchService.test.ts` | 1 | 0 | | `apps/server/src/project/ManagedProjectFolders.ts` | 15 | 8 | | `apps/server/src/project/ProjectMutation.ts` | 1 | 0 | | `apps/server/src/project/ProjectService.ts` | 58 | 28 | | `apps/server/src/provider/agentContextBudget.json` | 1 | 1 | | `apps/server/src/relay/AgentAwarenessRelay.test.ts` | 1 | 0 | | `apps/web/src/components/CommandPalette.tsx` | 12 | 4 | | `apps/web/src/components/CommandPaletteLookups.ts` | 14 | 10 | | `apps/web/src/components/chat/DraftHeroHeadline.tsx` | 5 | 2 | | `apps/web/src/components/settings/ProjectSettingsPanel.tsx` | 2 | 0 | | `apps/web/src/hooks/useHandleNewThread.test.ts` | 7 | 0 | | `apps/web/src/hooks/useHandleNewThread.ts` | 4 | 2 | | `apps/web/src/hooks/useLogicalProjectEnvironments.ts` | 2 | 2 | | `apps/web/src/i18n/translations/de.json` | 5 | 1 | | `apps/web/src/i18n/translations/en.json` | 5 | 1 | | `apps/web/src/i18n/translations/es.json` | 5 | 1 | | `apps/web/src/i18n/translations/fr.json` | 5 | 1 | | `apps/web/src/i18n/translations/ja.json` | 5 | 1 | | `apps/web/src/i18n/translations/ko.json` | 5 | 1 | | `apps/web/src/i18n/translations/pt-BR.json` | 5 | 1 | | `apps/web/src/i18n/translations/ru.json` | 5 | 1 | | `apps/web/src/i18n/translations/sv.json` | 5 | 1 | | `apps/web/src/i18n/translations/zh.json` | 5 | 1 | | `apps/web/src/routes/_chat.index.tsx` | 2 | 1 | | `packages/client-runtime/package.json` | 4 | 0 | | `packages/client-runtime/src/operations/commands.test.ts` | 16 | 0 | | `packages/client-runtime/src/operations/commands.ts` | 3 | 0 | | `packages/contracts/src/applicationEvent.ts` | 3 | 0 | | `packages/contracts/src/index.ts` | 1 | 0 | | `packages/contracts/src/orchestrationProject.ts` | 2 | 0 | | `packages/contracts/src/project.ts` | 3 | 0 | </details> Carry-Source-Ref: refs/lastcode/carry-sources/pr-761/b1a13da402c102b56fa975d000766f0d746ccd4d Carry-Source-Base: c3e8c33 Carry-Source-Head: b1a13da
Part of #751.
Some owned threads appeared at the top level even when their orchestrator was visible. The LastCode sidebar now uses the recorded owner to place them.
🧭 The graph rule
Each logical project resolves owners from the shells it already has, using environment and thread ID together. An owned thread uses its explicit placement when the target is visible. Otherwise it nests under a visible owner in the same logical project, or appears in a derived group in the destination project. The grouping is display-only.
📐 Rules
groupedUnderThreadIdwins, including a stored group thread. The sidebar creates the other groups in memory.creatorOrigin,delegatedFrom, and the legacycreatorThreadId. An unavailable creator can still be named.🎯 Surfaces and decisions
✅ Verification
Tests. 112 focused unit tests, 49 focused browser tests, 15 React Compiler checks, web type checking and targeted lint passed. Local Quick CI is deferred to the required GitHub checks.
Browser. Before and after were captured in the same isolated dev browser, using Replay threads and two real connected dev environments on one machine.
Performance. Browser measurement rebuilt the thread index and projected 40 projects, with mixed local, remote, independent and cross-project shells. Eight warmups, then 25 paired samples that alternated order. Values are before → after.
This measures graph projection and indexing only. It excludes sorting, React rendering and shell transport. Ownership lookup and graph traversal are bounded by the number of loaded shells, and there are no extra transcript reads.
🧱 Upstream-owned files
Each changed path was checked against
origin/main.apps/web/src/components/CommandPalette.logic.tsapps/web/src/components/CommandPaletteThreadItems.tsxBefore and after
Local review: 2 initial full-diff rounds, 1 orchestrator-fix delta round and 1 post-rebase full-diff round with Codex Terra 6.1 (xhigh), approved.
GPT-6.2 Sol high via Codex in LastCode.