Skip to content

feat(agent-sdk): migrate to 0.3.198 - #229

Merged
srothgan merged 4 commits into
mainfrom
migrate/agent-sdk-0.3.198
Jul 2, 2026
Merged

srothgan merged 4 commits into
mainfrom
migrate/agent-sdk-0.3.198

Conversation

@srothgan

@srothgan srothgan commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Migrate @anthropic-ai/claude-agent-sdk from 0.3.193 to 0.3.198 in the root package and bridge package locks.
  • Preserve new SDK/runtime metadata through the TypeScript bridge and Rust app models, including resolved model IDs and MCP request_timeout_ms.
  • Split the /config model and thinking effort picker into separate dialogs, with effort options filtered by the selected model.
  • Harden GitHub Actions permissions for CodeQL/security findings by declaring least-privilege workflow permissions.

Why

The SDK migration exposes newer model and MCP metadata that the bridge needs to preserve for accurate runtime state, config display, and MCP server updates. The config screen also had too much behavior in one shared model/effort dialog; splitting it makes model selection and effort selection independent while still showing that effort availability depends on the selected model.

Closes #225

Validation

  • Automated:
    • cargo fmt --all -- --check
    • cargo check --offline
    • cargo clippy --all-targets --all-features -- -D warnings
    • cargo test
    • npm.cmd --prefix agent-sdk test
  • Manual:
    • Reviewed the branch diff against main and confirmed the PR body covers all three branch commits.
  • Screenshot/video (if UI changed): Not captured; TUI config rendering and behavior are covered by automated tests.

Notes

  • Breaking changes: N/A
  • Docs updated: N/A

srothgan added 3 commits July 2, 2026 00:01
- bump Claude Agent SDK bridge packages and expected SDK version
- pass through MCP request_timeout_ms in bridge, wire, config, and status paths
- preserve Fable model metadata and artifact descriptions from SDK updates
- avoid canUseTool shadow warnings when startup bypass permissions are active
- reserve app-owned slash commands so SDK /config cannot override local settings
- Replace the combined model/effort overlay with separate model and thinking effort overlays
- Remove tab-based switching inside the dialog
- Show the model-dependency note only in the thinking effort dialog
- Persist model and effort independently without rewriting the other setting
- Add tests for filtered effort levels and separate persistence behavior
- Exclude `[` from the model-id context-suffix regex in model_metadata.ts, removing the polynomial-ReDoS backtracking flagged by js/polynomial-redos
- Add least-privilege top-level `permissions: contents: read` to the ci, agent-sdk, and release-dryrun workflows
- Scope commit-lint to `pull-requests: read` and grant the security-audit workflow `issues: write` + `checks: write` for issue/check creation
- Clears the high-severity ReDoS alert and all nine actions/missing-workflow-permissions findings
@srothgan srothgan self-assigned this Jul 1, 2026
@srothgan srothgan added type: bug Something is not working type: feature New feature or capability type: refactor Refactoring, performance, tests, and code style labels Jul 1, 2026
- Add Fable 5 and Agent SDK 0.3.198 as the top feature entry
- Document the split model and thinking effort config dialogs
- Note MCP request timeout metadata preservation
- Include workflow permission hardening and SDK dependency update entries
@srothgan
srothgan enabled auto-merge (squash) July 2, 2026 06:02
@srothgan
srothgan disabled auto-merge July 2, 2026 06:02
@srothgan
srothgan merged commit f6b0cc3 into main Jul 2, 2026
18 checks passed
@srothgan
srothgan deleted the migrate/agent-sdk-0.3.198 branch July 2, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something is not working type: feature New feature or capability type: refactor Refactoring, performance, tests, and code style

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent SDK update available: 0.3.193/0.3.193 -> 0.3.195

1 participant