Skip to content

fix(code-actions): reject malformed destruct-line replies - #2043

Open
rgrinberg wants to merge 1 commit into
masterfrom
push-wsqrtopztuxp
Open

fix(code-actions): reject malformed destruct-line replies#2043
rgrinberg wants to merge 1 commit into
masterfrom
push-wsqrtopztuxp

Conversation

@rgrinberg

@rgrinberg rgrinberg commented Jul 31, 2026

Copy link
Copy Markdown
Member

Recovery parsing can recognize match xwith as a match expression even though the destruct reply does not contain the standalone with separator required by destruct-line formatting. The previous exception-raising substring lookup escaped as a JSON-RPC internal error.

Allow destruct post-processing to reject unusable recovery results. Destruct-line now returns no action for this case while ordinary destruct actions remain unchanged.

@rgrinberg
rgrinberg force-pushed the push-wsqrtopztuxp branch from ff085bf to 87953d1 Compare July 31, 2026 21:43
@rgrinberg rgrinberg changed the title test(code-actions): expose substring failure on malformed match fix(code-actions): reject malformed destruct-line replies Jul 31, 2026
@rgrinberg
rgrinberg force-pushed the push-wsqrtopztuxp branch from 87953d1 to cc55e9d Compare July 31, 2026 22:32
Let destruct post-processing decline recovery results and return no action when a match-line reply does not contain the expected with separator.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-wsqrtopztuxp branch from cc55e9d to 2a6866e Compare July 31, 2026 23:18
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.

1 participant