Skip to content

Fix IDE preview not showing for queued tool approvals#35

Merged
tcdent merged 1 commit intomainfrom
fix-ide-preview
Jan 17, 2026
Merged

Fix IDE preview not showing for queued tool approvals#35
tcdent merged 1 commit intomainfrom
fix-ide-preview

Conversation

@tcdent
Copy link
Owner

@tcdent tcdent commented Jan 17, 2026

Problem

When multiple tool calls that require approval (e.g., edit_file) were queued, their pipelines all started executing immediately. This caused IDE previews to overwrite each other - when the user approved/denied the first tool, the next tool's approval would show but its preview was gone.

Solution

Execute approval-requiring tools sequentially instead of in parallel:

  • Only start a pending tool if no other active tool is awaiting approval
  • Pre-approved tools can still run in parallel (no conflicts)
  • This ensures each tool's IDE preview is visible when the user makes their decision

Also fixes denied/error pipelines to properly run their finally handlers (e.g., IdeClosePreview) before being removed from active pipelines.

Testing

Tested by queuing multiple edit_file calls - each preview now appears correctly as the previous one is approved/denied.

- Execute approval-requiring tools sequentially, not in parallel
- This prevents IDE previews from overwriting each other when multiple
  edit_file/write_file calls are queued
- Pre-approved tools can still run in parallel
- Also fix denied/error pipelines to run their finally handlers
  (e.g., IdeClosePreview) before being removed
@tcdent tcdent merged commit 59d2ed1 into main Jan 17, 2026
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