You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c3eee8a
Browse filesBrowse the repository at this point in the historyBrowse files
`Session "${sessionKey}" could not be resumed. Name a different <Session> to start a new conversation.`,
5459
-
options,
5461
+
caller==="held"
5462
+
? `Conversation "${sessionKey}" could not be resumed. Retry the saved request to try the same conversation again.`
5463
+
: `Session "${sessionKey}" could not be resumed. Retry this operation with the same <Session> if its caller permits; a different <Session> starts a new conversation.`,
Copy file name to clipboardExpand all lines: packages/acp/tests/released-runtime.test.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1317,7 +1317,8 @@ describe(
1317
1317
constsaved=prompt.error;
1318
1318
expect(prompt.status).toBe("failed");
1319
1319
expect(prompt.text).toBe("");
1320
-
expect(saved.message).toContain("Name a different <Session>");
1320
+
expect(saved.message).toContain("could not be resumed");
1321
+
expect(saved.message).not.toContain("Name a different <Session>");
1321
1322
constsensitive=detail?.startsWith("ghp_")===true;
1322
1323
expect(saved).toEqual({
1323
1324
message: saved.message,
@@ -1559,7 +1560,7 @@ describe(
1559
1560
yield*ensureDir(docs);
1560
1561
1561
1562
constfacts=[
1562
-
`Session "${sessionKey}" could not be resumed. Name a different <Session> to start a new conversation.`,
1563
+
`Session "${sessionKey}" could not be resumed. Retry this operation with the same <Session> if its caller permits; a different <Session> starts a new conversation.`,
Copy file name to clipboardExpand all lines: specs/acp-client-spec.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1235,6 +1235,16 @@ resume, the element fails with the name `SessionResumeRequiredError` and no raw
1235
1235
upstream cause, its body and later content do not run, and no Prompt record,
1236
1236
attempted input, ordinal, usage or `started` event is created.
1237
1237
1238
+
An unknown failure of an established same-session load or resume is a failed
1239
+
pre-send attempt. The provider preserves the saved identity, creates no session,
1240
+
and sends no prompt. It reports `SessionResumeRequiredError` with the ordinary
1241
+
Session remedy: repeat the operation with the same `<Session>` when its caller
1242
+
permits it; a different `<Session>` starts another conversation. Neither an ACP
1243
+
code, provider name, message nor retryable hint decides eligibility. An identity
1244
+
mismatch refuses; an attempt whose prompt delivery is uncertain cannot use this
1245
+
pre-send rule. Classification never resends automatically. A workflow reports
1246
+
the failure under its retained run contract and offers no per-Prompt Retry.
1247
+
1238
1248
ACP attaches the [selected bounded facts](#saved-prompt-failure-details) to the
1239
1249
refusal under `executablemd.agent.prompt-diagnostic` with provider `acp`, stage
1240
1250
`session-ensure` and operation `session/ensure`. The operation names the
@@ -1248,7 +1258,7 @@ appends one line per present fact, in this order and with these labels; string
1248
1258
values use JSON string rendering so an embedded line break stays unambiguous:
1249
1259
1250
1260
```text
1251
-
Session "<key>" could not be resumed. Name a different <Session> to start a new conversation.
1261
+
Session "<key>" could not be resumed. Retry this operation with the same <Session> if its caller permits; a different <Session> starts a new conversation.
0 commit comments