mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-10-27 04:30:59 +00:00
fix: send the legacy custom answer key to AIR (#1210)
Released AIR versions, such as 262.air/release-09, read the custom answer companion only from the root key _meta._askUserQuestionCustomAnswer. The adapter sent only _meta.jetbrains.air.customAnswer, so these versions showed the companion as a separate question. For an AIR client the companion now carries both keys with the same value. Other clients get no key, as before. Remove the root key when the ACP registry no longer serves AIR versions that read only that key. IJAI-2892
This commit is contained in:
committed by
GitHub
parent
f53b0d7f40
commit
af0b43de94
@@ -1204,6 +1204,10 @@ For AIR, the companion field carries `_meta.jetbrains.air.customAnswer`:
|
||||
`questionId` names the select field of the same question.
|
||||
A client can render the companion as the free-text choice of that question.
|
||||
|
||||
For AIR, the companion field also carries the same value under the root key `_meta._askUserQuestionCustomAnswer`.
|
||||
Released AIR versions read only that key.
|
||||
A client that is not AIR gets neither key.
|
||||
|
||||
## Session fork point
|
||||
|
||||
AIR can fork a session at one agent message.
|
||||
@@ -1255,12 +1259,11 @@ The adapter sends the key only to an AIR client.
|
||||
|
||||
These keys moved into the AIR namespace. The adapter sends the new key only to AIR, and the old key to no client.
|
||||
|
||||
| Old key | New key |
|
||||
| --------------------------------------------------------- | ---------------------------------------------- |
|
||||
| `initialize._meta.goal`, `session_info_update._meta.goal` | `_meta.jetbrains.air.goal`, same shape |
|
||||
| mode `_meta.kind`, config option value `_meta.kind` | `_meta.jetbrains.air.kind` |
|
||||
| elicitation property `_meta._askUserQuestionCustomAnswer` | `_meta.jetbrains.air.customAnswer`, same value |
|
||||
| tool call `_meta.contextCompaction` | `_meta.jetbrains.air.contextCompaction` |
|
||||
| Old key | New key |
|
||||
| --------------------------------------------------------- | --------------------------------------- |
|
||||
| `initialize._meta.goal`, `session_info_update._meta.goal` | `_meta.jetbrains.air.goal`, same shape |
|
||||
| mode `_meta.kind`, config option value `_meta.kind` | `_meta.jetbrains.air.kind` |
|
||||
| tool call `_meta.contextCompaction` | `_meta.jetbrains.air.contextCompaction` |
|
||||
|
||||
The adapter does not send `_meta.claudeCode.title`, `claudeCode.subagent`, `claudeCode.skill`, or `claudeCode.skillPath` to any client.
|
||||
AIR reads `_meta.jetbrains.air.commandTitle`, `subagent`, and `skill` instead.
|
||||
|
||||
Reference in New Issue
Block a user