Skip to content

fix(compact): harden task_state bounds and decode path#8

Merged
wynxing merged 1 commit into
codex/taskstate-compact-prfrom
fork-pr-252-1776088992
Apr 13, 2026
Merged

fix(compact): harden task_state bounds and decode path#8
wynxing merged 1 commit into
codex/taskstate-compact-prfrom
fork-pr-252-1776088992

Conversation

@fennoai

@fennoai fennoai Bot commented Apr 13, 2026

Copy link
Copy Markdown

Requested by @Yumiue

Summary

  • enforce TaskState boundary clamping before session persistence/load
  • fix compact JSON extraction to skip non-contract brace prefaces and locate valid payload
  • remove double unmarshal in decodeStoredSession while keeping required field fail-fast validation
  • add regression tests for parser preface handling and task_state clamp behavior

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: Yumiue <188874804+Yumiue@users.noreply.github.com>
@wynxing wynxing merged commit 0681b58 into codex/taskstate-compact-pr Apr 13, 2026
1 check passed
@fennoai fennoai Bot deleted the fork-pr-252-1776088992 branch April 13, 2026 14:14
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

wynxing pushed a commit that referenced this pull request Apr 15, 2026
fix(runtime): resolve simplify follow-up issues
wynxing pushed a commit that referenced this pull request Apr 24, 2026
fix(gateway): 对齐拉起契约并修复文档校验链路
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