fix(vscode-ide-companion/acp): correct optionId mapping in acpMessageHandler

Simplify the optionId mapping logic to directly use the provided optionId
rather than transforming 'reject_once' to 'cancel'. This ensures the
original optionId value is preserved in the outcome.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
yiliang114
2025-12-05 11:41:33 +08:00
parent 8203f6582f
commit 0851ab572d
4 changed files with 41 additions and 16 deletions

View File

@@ -218,7 +218,7 @@ export class AcpMessageHandler {
outcome: {
outcome,
// optionId: optionId === 'cancel' ? 'reject_once' : optionId,
optionId: optionId === 'reject_once' ? 'cancel' : optionId,
optionId,
},
};
} catch (_error) {