Skip to content

fix(cursor): hide Task subagent sessions from sidebar by default - #1046

Draft
joostfaassen wants to merge 1 commit into
siteboon:mainfrom
joostfaassen:fix/cursor-subagent-sessions
Draft

fix(cursor): hide Task subagent sessions from sidebar by default#1046
joostfaassen wants to merge 1 commit into
siteboon:mainfrom
joostfaassen:fix/cursor-subagent-sessions

Conversation

@joostfaassen

Copy link
Copy Markdown

Summary

  • Cursor Task/subagent transcripts were indexed as peer sidebar sessions (unlike Claude/Codex, which already skip them).
  • This marks Cursor subagents via is_subagent + parent_session_id (classic …/subagents/ paths and store.db agentId links from parent Task results).
  • Default project/session lists exclude subagents; Quick Settings adds Show subagent sessions.
  • Parent chat Task blocks get an Open transcript link; subagent history falls back to agent-transcripts JSONL when store.db is missing.

Test plan

  • Start a Cursor session that launches Task/subagents
  • Confirm child sessions do not appear in the left sidebar by default
  • Enable Quick Settings → Show subagent sessions → children appear with a sub badge
  • Open parent session → Task block → Open transcript navigates to the child session
  • Direct /session/<subagent-uuid> still works when hidden from the sidebar
  • Claude/Codex sidebar behaviour unchanged

Cursor Task/subagents were indexed as peer sidebar sessions, unlike
Claude/Codex which already skip them. Mark Cursor subagents with
is_subagent + parent_session_id (classic …/subagents/ paths and store.db
agentId links), exclude them from project lists unless "Show subagent
sessions" is enabled, and add Open transcript on parent Task blocks with
JSONL history fallback when store.db is missing.
@joostfaassen
joostfaassen force-pushed the fix/cursor-subagent-sessions branch from 5680829 to c24e2cb Compare July 20, 2026 14:06
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 75cc7f99-af9c-4a62-b94a-7ad096c26257

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant