feat(sidebar-v2): add task tabs and context forks#4458
Draft
t3dotgg wants to merge 3 commits into
Draft
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
What changed
workspaceTaskId.Cmd/Ctrl+Tfresh-tab creation, a web-visible add button, provider/model selection per tab, context-fork creation, status indicators, and safe tab close behavior..plans/task-tabs-context-fork.html.Why
The current sidebar treats each agent conversation as an independent unit even when several agents are working toward one outcome. This experiment makes the worktree-backed task the durable unit while preserving threads as independently configurable execution tabs.
Older servers and legacy rows retain the existing one-thread behavior. The client only exposes task-tab creation when the server advertises support.
Validation
vp run -F @t3tools/contracts -F @t3tools/shared -F t3 -F @t3tools/web --parallel typecheckNote
Add workspace task tabs and context forks to sidebar and chat view
WorkspaceTaskIdconcept that groups related threads (tabs) into a single task; the sidebar now groups, displays, and operates on threads at the task level (snooze, settle, delete, etc. apply to all tabs)WorkspaceTaskTabstab bar in the chat view for navigating between tabs, creating fresh tabs, and forking context into a new tab (portable fork)buildPortableForkProviderInputworkspace_task_id,tab_position,tab_closed_at, andfork_provenance_jsoncolumns toprojection_threads, with backfill for legacy rowslistActiveThreadRowsnow excludes threads withtab_closed_at IS NOT NULL; any caller expecting closed tabs in active listings will silently receive fewer results📊 Macroscope summarized 0ed495a. 25 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted
🗂️ Filtered Issues
No issues evaluated.