Skip to content

agent-trace: Capture question tool answers in conversation trace#99

Open
stefanskoricdev wants to merge 2 commits into
mainfrom
feat/opencode-question-tool-conversation-trace
Open

agent-trace: Capture question tool answers in conversation trace#99
stefanskoricdev wants to merge 2 commits into
mainfrom
feat/opencode-question-tool-conversation-trace

Conversation

@stefanskoricdev

Copy link
Copy Markdown
Contributor

No description provided.

stefanskoricdev and others added 2 commits June 26, 2026 14:22
Map completed OpenCode question tool parts into text message.part payloads so selected answers are persisted through the existing conversation-trace path.

Update generated plugin copies and runtime contract documentation to match the new capture behavior.

Co-authored-by: SCE <sce@crocoder.dev>
…ool results

The OpenCode question tool was previously mapped to part_type: "text",
losing the semantic distinction.  A first-class "question" part type
preserves the type identity and enables query/analysis against question
tool results.

- Rust: Add PartType::Question variant, validate_question_part_text
  helper (requires JSON array of {question, answer} objects), relax
  parts.type CHECK constraint in 009 migration
- TypeScript: Update part_type literal (plugin + generated copies),
  refactor buildMessagePartConversationTracePayload to accept
  EventAllowedPart, emit part_type: "question" in question tool
  payload
- Context docs: Reflect new question part type across all affected
  context files
@stefanskoricdev stefanskoricdev marked this pull request as ready for review June 26, 2026 14: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