Skip to content

feat(vscode): release v0.4.4 with QuestionRequest support and editor context improvements#113

Merged
tempurai merged 9 commits intomainfrom
vscode/bump_0_4_2
Mar 2, 2026
Merged

feat(vscode): release v0.4.4 with QuestionRequest support and editor context improvements#113
tempurai merged 9 commits intomainfrom
vscode/bump_0_4_2

Conversation

@tempurai
Copy link
Copy Markdown
Collaborator

@tempurai tempurai commented Mar 2, 2026

Summary

This PR introduces QuestionRequest support in the Wire 1.4 protocol, allowing agents to ask users questions with multiple choice options and wait for their responses during task execution.

Key Changes

New Features

  • QuestionRequest Support (Wire 1.4) - Agents can now send QuestionRequest to ask users interactive questions with customizable options
    • Added QuestionRequest, QuestionResponse, QuestionItem, and QuestionOption types
    • Added ClientCapabilities/ServerCapabilities with supports_question flag
    • New sendQuestionResponse() method in ProtocolClient
    • New respondQuestion() method in Turn interface
  • Editor Context Sharing Modes - Added configurable editor context sharing settings for better session management

Bug Fixes

  • Fork Session Stability - Fixed handling of corrupted wire.jsonl when forking from turns with incomplete data
    • Truncates wire.jsonl to last complete turn if target turn has no TurnEnd
    • Removes assistant messages with incomplete tool_calls from context.jsonl

Refactoring

  • Integrated QuestionDialog into chat store, replacing the separate AskUserDialog component

Version Bump

  • VS Code Extension: 0.4.2 → 0.4.4

When forking from a turn with incomplete data:
- Truncate wire.jsonl to last complete turn if target turn has no TurnEnd
- Remove assistant messages with incomplete tool_calls from context.jsonl

Fixes issues when fork point has partial tool execution state
- Add QuestionRequest, QuestionResponse, QuestionItem, QuestionOption types
- Add ClientCapabilities/ServerCapabilities with supports_question flag
- Bump protocol version to 1.4
- Add sendQuestionResponse() method to ProtocolClient
- Add respondQuestion() method to Turn interface
- Add RespondQuestion method to bridge Methods
- Re-export QuestionRequest types from SDK
- Add respondQuestion handler in chat.handler.ts
- Update HandlerContext types
- Replace separate question.store.ts with pendingQuestion in chat.store.ts
- Rename AskUserDialog.tsx to QuestionDialog.tsx
- QuestionDialog now uses useChatStore instead of separate store
- Event handler writes QuestionRequest directly to draft.pendingQuestion
- Remove unused AskUserWithOption references from App.tsx
@tempurai tempurai merged commit c207267 into main Mar 2, 2026
3 of 4 checks passed
@tempurai tempurai deleted the vscode/bump_0_4_2 branch March 2, 2026 04:19
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