Skip to content

fix: show only direct conversation initiated by the user via the :conversation command#3510

Merged
amitksingh1490 merged 12 commits into
mainfrom
conversation-list-view
Jun 14, 2026
Merged

fix: show only direct conversation initiated by the user via the :conversation command#3510
amitksingh1490 merged 12 commits into
mainfrom
conversation-list-view

Conversation

@tusharmath

@tusharmath tusharmath commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add conversation tree navigation and child list views to browse parent-child conversation hierarchies, plus filter out auto-generated conversations from listings.

Context

When agents spawn child conversations (e.g., for sub-tasks), users had no way to navigate or view these related conversations. This made it difficult to track work distributed across multiple conversation threads. The conversation list was also cluttered with auto-generated conversations that users didn't initiate.

Changes

  • Added new conversation-tree command (ct alias) to interactively browse child conversations spawned by the current conversation and switch between them
  • Added --parent flag to select conversation to filter the conversation picker to child conversations only
  • Added --parent flag to list conversation to display child conversations in structured (porcelain) format
  • Filtered out auto-generated conversations from list and show views, showing only user-initiated conversations by default
  • Fixed cancelled todo status icon display
  • Added shell plugin support for conversation-tree action via :conversation-tree alias

Key Implementation Details

  • user_initiated_conversations() filters conversations to only those where initiator == "user" and excludes conversations that are related_conversation_ids of other conversations (intermediate nodes)
  • The conversation-tree command validates the parent exists, fetches children, presents an interactive selector, and switches the active conversation on selection
  • list conversation --parent <id> outputs child conversations in a structured table with title and relative time ago

Use Cases

  • Navigate conversation hierarchies after an agent spawns child tasks
  • Quickly switch between related conversations in a tree
  • Get a clean, user-initiated-only conversation list without auto-generated noise
  • Shell users can use :conversation-tree to browse child conversations inline

Testing

# Build and run
cargo build

# List user-initiated conversations (filtered)
forge list conversation

# Show child conversations of current conversation
forge list conversation --parent <conversation-id>

# Interactively browse and switch child conversations
forge conversation-tree
# or
forge ct

# Via shell plugin
:conversation-tree

Links

  • Related issues: N/A

@tusharmath tusharmath changed the title conversation list view feat: Add conversation tree & child list views for parent-child conversation hierarchy Jun 14, 2026
@github-actions github-actions Bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Jun 14, 2026
@tusharmath tusharmath force-pushed the conversation-list-view branch from 5e37191 to ddf59eb Compare June 14, 2026 13:06
@tusharmath tusharmath changed the title feat: Add conversation tree & child list views for parent-child conversation hierarchy feat: Add conversation tree navigation, child list views, and user-initiated conversation filtering Jun 14, 2026
@tusharmath tusharmath changed the title feat: Add conversation tree navigation, child list views, and user-initiated conversation filtering fix: show only direct conversation initiated by the user via the :conversation command Jun 14, 2026
@tusharmath tusharmath force-pushed the conversation-list-view branch from 2456239 to 1ae93a1 Compare June 14, 2026 13:37
@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Jun 14, 2026
@amitksingh1490 amitksingh1490 merged commit 34cfeb6 into main Jun 14, 2026
8 checks passed
@amitksingh1490 amitksingh1490 deleted the conversation-list-view branch June 14, 2026 13:41
@tusharmath tusharmath removed the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants