Walkthrough
-
The client now retrieves archived shell snapshots for mobile and web environments. Thread-shell grouping uses archived parent threads and shell-state removal sequences when deciding whether to show delegated tasks under their parent.
Changes: Delegated Task Grouping
Layer / File(s) Summary Archived snapshot inputs and providers
packages/client-runtime/src/state/threadShell.ts,apps/mobile/src/state/threads.ts,apps/web/src/state/threads.ts,packages/client-runtime/src/state/threadShell.test.ts,apps/mobile/src/state/use-composer-drafts.test.ts,apps/web/src/composerDraftStore.test.tsThe thread-shell input accepts archived snapshot and shell-state atoms. Mobile and web providers supply archived snapshots. Test harnesses provide the new atoms. Archive-aware parent grouping
packages/client-runtime/src/state/threadShell.ts,packages/client-runtime/src/state/threadShell.test.tsDelegated tasks remain grouped when the parent is live or archived, or when its removal sequence is newer than the archive snapshot. Tests cover archive loading, snapshot sequence, archive failure, and parent restoration. Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related issues
- pingdotgg/t3code#30320: This issue describes a delegated task becoming a top-level thread when its parent is absent from the newest settled snapshot. This change uses archived snapshots to retain archived parents.
Possibly related PRs
- pingdotgg/t3code#24648: That PR adds shell removal sequences and snapshot generation tracking, which this change uses when comparing shell state with archived snapshots.
Suggested labels:
bugfixSuggested reviewers:
juliusmarminge,t3dotgg
Merge Risk: External image Minimal · up to 79bea
-
Archived-parent grouping is ready to merge; testing the in-flight refresh race would strengthen coverage.
Pre-merge checks: Passed 4
-
Check name Status Explanation Title check Passed The title clearly and concisely describes the main fix: keeping linked-environment tasks under an archived parent thread. Description check Passed The description includes all required sections and provides the problem, implementation details, scope, approval reference, focused verification results, limitations, and agent disclosure. Linked Issues check Passed [ #30265] requires delegated tasks to remain under an archived parent and stay out of the sidebar.threadShell.tsnow reads the parent environment archive when the live parent is missing. It retains …Out of Scope Changes check Passed The changes stay within [ #30265]. The runtime change implements archived-parent retention. The test changes cover the required behavior. Web, mobile, and test-harness changes provide the new inputs re…Full details: Linked Issues check
-
Explanation
[
#30265] requires delegated tasks to remain under an archived parent and stay out of the sidebar.threadShell.tsnow reads the parent environment archive when the live parent is missing. It retains the task while the archive is loading, stale, or contains the parent. It lists the task only when a current archive omits the parent or the read fails.threadShell.test.tscovers these states and refreshes after removals and authoritative snapshots. Web and mobile provide the required atoms.
Full details: Out of Scope Changes check
-
Explanation
The changes stay within [
#30265]. The runtime change implements archived-parent retention. The test changes cover the required behavior. Web, mobile, and test-harness changes provide the new inputs required by the runtime API. No unrelated feature change appears in the supplied whole-PR summary.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts