feat(agent-sdk): migrate to 0.3.258 and support message queues - #363
Merged
Merged
Conversation
- bump both SDK pins, lockfiles, and runtime guard to 0.3.258 - use summary context usage for polling and guarded-resume fencing - snapshot appended system prompts across resumes until compaction - add focused version, prompt-policy, context-detail, and resume-fence test - document the remaining migration phases and live smoke gates
- correlate queued prompts with SDK command lifecycle events - insert accepted queued prompts as individual user messages - preserve queued text and images across interruption and failure - add queue status UX with a ten-message capacity limit - cover bridge, state, and transcript lifecycle behavior
- Add MCP resource links across the bridge, Rust state, and TUI. - Preserve ambient task metadata and background Bash completion. - Harden Write diffs and extend structured tool rendering. - Add SDK compatibility and regression coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0.3.258, use summary-only context polling, and preserve the snapshotted system prompt across resume.Why
Agent SDK
0.3.258adds correlation and result metadata that let the host accept messages during an active turn and present richer task and tool results. The migration also changes several output contracts, including nullable Write originals, which require host-side compatibility handling to avoid stale tasks or misleading diffs.Closes #
Validation
npm.cmd --prefix agent-sdk test(385 tests),npm.cmd --prefix agent-sdk run lint,npm.cmd --prefix agent-sdk run knip,npm.cmd --prefix agent-sdk run audit,npm.cmd pack --dry-run,cargo fmt --all -- --check,cargo check --offline,cargo clippy --all-targets --all-features --offline -- -D warnings, andcargo test --offline.Notes