Skip to content

add additional metadata for thinking parts#1395

Merged
justschen merged 4 commits into
mainfrom
justin/jirachi
Oct 17, 2025
Merged

add additional metadata for thinking parts#1395
justschen merged 4 commits into
mainfrom
justin/jirachi

Conversation

@justschen
Copy link
Copy Markdown
Contributor

emits a reasoning stop thinking part which will let us know when thinking is done

@justschen justschen marked this pull request as ready for review October 17, 2025 16:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds metadata to thinking parts to indicate when reasoning is complete. The changes emit a special "reasoning stop" thinking part with vscode_reasoning_done: true metadata when thinking transitions end.

  • Tracks thinking state with a boolean flag to detect when thinking ends
  • Moves thinking delta processing earlier in the flow to properly emit completion metadata
  • Applies the same pattern to both the chat response stream and language model response handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/extension/prompt/node/pseudoStartStopConversationCallback.ts Adds thinking state tracking and emits reasoning completion metadata in chat response processing
src/extension/conversation/vscode-node/languageModelAccess.ts Mirrors the same thinking completion logic for language model responses

@justschen justschen added this pull request to the merge queue Oct 17, 2025
Merged via the queue into main with commit 41b1757 Oct 17, 2025
17 checks passed
@justschen justschen deleted the justin/jirachi branch October 17, 2025 16:39
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.

3 participants