Skip to content

fix(gui): preserve filepath in apply error state#12882

Open
Manpreet2298 wants to merge 1 commit into
continuedev:mainfrom
Manpreet2298:fix/preserve-filepath-on-apply-erro
Open

fix(gui): preserve filepath in apply error state#12882
Manpreet2298 wants to merge 1 commit into
continuedev:mainfrom
Manpreet2298:fix/preserve-filepath-on-apply-erro

Conversation

@Manpreet2298

@Manpreet2298 Manpreet2298 commented Jun 23, 2026

Copy link
Copy Markdown

Description

Fixes #12641

Preserve the original filepath when an edit/apply operation fails in the GUI apply flow.

Previously, the failure path in handleApplyStateUpdate could close the apply state without carrying the file path forward, which caused the UI to show Failed to edit undefined.

This change keeps the file context in the error flow so the failure message references the correct file.

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

Not applicable for this change, since this is a minimal error-state handling fix.

Tests

No tests were added as part of this minimal fix.

The change is limited to preserving filepath in the failed apply-state update so the existing error message uses the correct file path instead of undefined.


Summary by cubic

Preserve the original filepath in the GUI apply error flow so failure messages show the correct file. Fixes "Failed to edit undefined" by carrying filepath through the failed apply-state update.

Written for commit fd245dc. Summary will update on new commits.

Review in cubic

@Manpreet2298 Manpreet2298 requested a review from a team as a code owner June 23, 2026 07:30
@Manpreet2298 Manpreet2298 requested review from sestinj and removed request for a team June 23, 2026 07:30
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 23, 2026
@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Manpreet2298

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit tools (edit_existing_file, single_find_and_replace) fail when workspace is connected via Remote SSH

1 participant