Skip to content

fix(amazonq): retain checked targets and editor state - #2940

Merged
dungdong-aws merged 1 commit into
Amazon-Q-Developer:mainfrom
dungdong-aws:feat/checked-workspace-file-operations
Oct 15, 2026
Merged

dungdong-aws merged 1 commit into
Amazon-Q-Developer:mainfrom
dungdong-aws:feat/checked-workspace-file-operations

Conversation

@dungdong-aws

Copy link
Copy Markdown
Contributor

Summary

  • Use the versioned workspace.fs.checkedFiles runtime API for fsRead, fsWrite, and fsReplace.
  • Carry the target captured during acceptance through validation and execution, so each operation uses the target that was evaluated.
  • Keep snapshots, diffs, and undo associated with the recorded target.
  • Report update outcomes, including updates that did not complete, with separate user-facing and model-facing messages.
  • Consume @aws/language-server-runtimes 0.3.22.

Windows continues to use the existing filesystem methods.

Verification

  • Merged into feature/mcp-security-enchance as fix(amazonq): retain checked targets and editor state #2907. Its Linux and Windows test and packaging jobs and the public NPM package tests passed.
  • On this branch, rebased onto current main: tsc --noEmit for aws-lsp-codewhisperer passes, and the affected controller, error, and file-tool suites pass locally (410 passing, 4 pending).
  • CI on this PR validates the combined result.

Dependencies

Requires @aws/language-server-runtimes 0.3.22, published from Amazon-Q-Developer/language-server-runtimes#784.

@dungdong-aws
dungdong-aws marked this pull request as ready for review October 15, 2026 17:35
@dungdong-aws
dungdong-aws requested a review from a team as a code owner October 15, 2026 17:35
@dungdong-aws
dungdong-aws merged commit 471a7f4 into Amazon-Q-Developer:main Oct 15, 2026
8 of 9 checks passed
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.

4 participants