Commit Graph

4 Commits

Author SHA1 Message Date
Luis Pater
28b281d532 fix(devin): preserve Gemini bare-Tink thought signatures on Responses replay
- Allow Devin-routed Responses reasoning items carrying unprefixed Vertex bare-Tink signatures to round-trip as Gemini-typed thought steps in responsesReasoningToInteractions.
- Add stream, non-stream, parallel tool-call, route-isolation, and rejected foreign/prefixed signature tests covering the Devin Gemini replay path.

Closes: #7842
2026-11-22 16:12:27 +08:00
Luis Pater
cb5f62f7f4 fix(devin): preserve gpt reasoning across responses tool calls
- Carry typed OpenAI reasoning arrays through streamed and non-streamed Responses without changing their bytes.
- Replay signed thoughts only on the Devin route and cover fragmented and late signatures across tool turns.

Closes: #7805
2026-11-21 21:26:02 +08:00
Luis Pater
6e6afab99a refactor: migrate gjson, sjson, and base64 to MoeForge/moego
- Replace tidwall/gjson and tidwall/sjson with github.com/MoeForge/moego/ojson
  and encoding/base64 with github.com/MoeForge/moego/base64 across the main
  module and examples
- Introduce cross-method *ojson.Doc request rewriting pipelines across
  thinking, signature, client/codex, runtime/executor/helps, pluginhost, and
  all provider executors with FinalizePayloadDoc as the final semantic barrier
- Convert all consecutive JSON mutations (>= 2 Set/SetRaw/Delete operations)
  to batch edits on ojson.Doc
- Upgrade read-only byte paths to ojson.GetBytesNoCopy,
  ojson.GetManyBytesNoCopy, and util.ParseGJSONBytesNoCopy with explicit
  strings.Clone ownership protection across streaming and persistent state
- Use base64.StdEncoding.ValidateString for zero-allocation signature checks
  and base64.EncodeDataURL for single-allocation data URL construction
2026-11-03 03:05:04 +08:00
Luis Pater
ea8ffd5f92 fix(devin): stream content early and defer thought stop for late signatures
- Allow early content streaming for OpenAI formats while preserving ordering behind queued tools
- Defer thought step termination and accumulate signature fragments for OpenAI Responses format
- Flush deferred reasoning step stops when closing open stream steps

Closes: #6306
2026-10-03 15:53:39 +08:00