@dexto/server 1.7.2 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/approval/manual-approval-handler.d.ts +1 -1
  2. package/dist/hono/index.cjs +13 -3
  3. package/dist/hono/index.d.ts +2 -1
  4. package/dist/hono/index.d.ts.map +1 -1
  5. package/dist/hono/index.js +13 -3
  6. package/dist/hono/routes/approvals.cjs +1 -1
  7. package/dist/hono/routes/approvals.js +1 -1
  8. package/dist/hono/routes/discovery.cjs +18 -22
  9. package/dist/hono/routes/discovery.d.ts +8 -33
  10. package/dist/hono/routes/discovery.d.ts.map +1 -1
  11. package/dist/hono/routes/discovery.js +18 -22
  12. package/dist/hono/routes/messages.cjs +21 -12
  13. package/dist/hono/routes/messages.d.ts.map +1 -1
  14. package/dist/hono/routes/messages.js +21 -12
  15. package/dist/hono/routes/prompts.d.ts +0 -45
  16. package/dist/hono/routes/prompts.d.ts.map +1 -1
  17. package/dist/hono/routes/queue.cjs +193 -82
  18. package/dist/hono/routes/queue.d.ts +2456 -21
  19. package/dist/hono/routes/queue.d.ts.map +1 -1
  20. package/dist/hono/routes/queue.js +193 -82
  21. package/dist/hono/routes/sessions.cjs +13 -14
  22. package/dist/hono/routes/sessions.d.ts.map +1 -1
  23. package/dist/hono/routes/sessions.js +13 -14
  24. package/dist/hono/routes/skills.cjs +116 -0
  25. package/dist/hono/routes/skills.d.ts +602 -0
  26. package/dist/hono/routes/skills.d.ts.map +1 -0
  27. package/dist/hono/routes/skills.js +97 -0
  28. package/dist/hono/routes/static.cjs +6 -1
  29. package/dist/hono/routes/static.d.ts +1 -1
  30. package/dist/hono/routes/static.d.ts.map +1 -1
  31. package/dist/hono/routes/static.js +6 -1
  32. package/dist/hono/schemas/responses.cjs +13 -13
  33. package/dist/hono/schemas/responses.d.ts +13 -18
  34. package/dist/hono/schemas/responses.d.ts.map +1 -1
  35. package/dist/hono/schemas/responses.js +11 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AAC5F,KAAK,gBAAgB,GAAG,kBAAkB,CACtC,OAAO,UAAU,EACjB,sBAAsB,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAAE,CAC5E,CAAC;AACF,KAAK,sBAAsB,GAAG,kBAAkB,CAAC,OAAO,gBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAClG,KAAK,qBAAqB,GAAG,kBAAkB,CAAC,OAAO,eAAe,EAAE,sBAAsB,CAAC,CAAC;AAChG,KAAK,sBAAsB,GAAG,kBAAkB,CAAC,OAAO,gBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAClG,KAAK,mBAAmB,GAAG,kBAAkB,CACzC,OAAO,aAAa,EACpB,sBAAsB,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAAE,CAC5E,CAAC;AACF,KAAK,yBAAyB,GAAG,kBAAkB,CAC/C,OAAO,mBAAmB,EAC1B,sBAAsB,CACzB,CAAC;AACF,KAAK,wBAAwB,GAAG,kBAAkB,CAC9C,OAAO,kBAAkB,EACzB,sBAAsB,CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACvB,mBAAmB,GACnB,gBAAgB,GAChB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,mBAAmB,GACnB,yBAAyB,GACzB,wBAAwB,CAAC"}
@@ -23,13 +23,13 @@ const QueueMessageBodySchema = z.object({
23
23
  }).describe("Request body for queueing a message");
24
24
  const GetQueueResponseSchema = z.object({
25
25
  messages: z.array(QueuedMessageSchema).describe("Queued messages"),
26
- count: z.number().describe("Number of messages in queue")
27
- }).strict().describe("Get queue response");
26
+ count: z.number().describe("Number of queued messages")
27
+ }).strict().describe("Get queued messages response");
28
28
  const QueueMessageResponseSchema = z.object({
29
29
  queued: z.literal(true).describe("Indicates message was queued"),
30
30
  id: z.string().describe("ID of the queued message"),
31
31
  position: z.number().describe("Position in the queue (1-based)")
32
- }).strict().describe("Queue message response");
32
+ }).strict().describe("Queued message response");
33
33
  const RemoveQueuedMessageResponseSchema = z.object({
34
34
  removed: z.literal(true).describe("Indicates message was removed"),
35
35
  id: z.string().describe("ID of the removed message")
@@ -37,7 +37,7 @@ const RemoveQueuedMessageResponseSchema = z.object({
37
37
  const ClearQueueResponseSchema = z.object({
38
38
  cleared: z.literal(true).describe("Indicates queue was cleared"),
39
39
  count: z.number().describe("Number of messages that were removed")
40
- }).strict().describe("Clear queue response");
40
+ }).strict().describe("Clear queued messages response");
41
41
  const QueueSessionParamSchema = z.object({
42
42
  sessionId: z.string().min(1).describe("Session ID")
43
43
  }).describe("Queue session params");
@@ -45,23 +45,17 @@ const QueueMessageParamSchema = z.object({
45
45
  sessionId: z.string().min(1).describe("Session ID"),
46
46
  messageId: z.string().min(1).describe("ID of the queued message to remove")
47
47
  }).describe("Queue message identifier params");
48
- const getQueueRoute = createRoute({
48
+ const getSteerRoute = createRoute({
49
49
  method: "get",
50
- path: "/queue/{sessionId}",
51
- summary: "Get queued messages",
52
- description: "Returns all messages waiting in the queue for a session",
53
- tags: ["queue"],
54
- request: {
55
- params: QueueSessionParamSchema
56
- },
50
+ path: "/steer/{sessionId}",
51
+ summary: "Get steer messages",
52
+ description: "Returns active-turn steer messages waiting for the next executor boundary",
53
+ tags: ["steer"],
54
+ request: { params: QueueSessionParamSchema },
57
55
  responses: {
58
56
  200: {
59
- description: "List of queued messages",
60
- content: {
61
- "application/json": {
62
- schema: GetQueueResponseSchema
63
- }
64
- }
57
+ description: "List of steer messages",
58
+ content: { "application/json": { schema: GetQueueResponseSchema } }
65
59
  },
66
60
  404: {
67
61
  description: "Session not found",
@@ -71,26 +65,20 @@ const getQueueRoute = createRoute({
71
65
  500: InternalErrorResponse
72
66
  }
73
67
  });
74
- const queueMessageRoute = createRoute({
68
+ const steerRoute = createRoute({
75
69
  method: "post",
76
- path: "/queue/{sessionId}",
77
- summary: "Queue a message",
78
- description: "Adds a message to the queue for processing when the session is no longer busy",
79
- tags: ["queue"],
70
+ path: "/steer/{sessionId}",
71
+ summary: "Queue active-turn steer input",
72
+ description: "Adds a message to be injected into the current active turn",
73
+ tags: ["steer"],
80
74
  request: {
81
75
  params: QueueSessionParamSchema,
82
- body: {
83
- content: { "application/json": { schema: QueueMessageBodySchema } }
84
- }
76
+ body: { content: { "application/json": { schema: QueueMessageBodySchema } } }
85
77
  },
86
78
  responses: {
87
79
  201: {
88
- description: "Message queued successfully",
89
- content: {
90
- "application/json": {
91
- schema: QueueMessageResponseSchema
92
- }
93
- }
80
+ description: "Steer message queued successfully",
81
+ content: { "application/json": { schema: QueueMessageResponseSchema } }
94
82
  },
95
83
  404: {
96
84
  description: "Session not found",
@@ -100,23 +88,17 @@ const queueMessageRoute = createRoute({
100
88
  500: InternalErrorResponse
101
89
  }
102
90
  });
103
- const removeQueuedMessageRoute = createRoute({
91
+ const removeSteerRoute = createRoute({
104
92
  method: "delete",
105
- path: "/queue/{sessionId}/{messageId}",
106
- summary: "Remove queued message",
107
- description: "Removes a specific message from the queue",
108
- tags: ["queue"],
109
- request: {
110
- params: QueueMessageParamSchema
111
- },
93
+ path: "/steer/{sessionId}/{messageId}",
94
+ summary: "Remove steer message",
95
+ description: "Removes a specific active-turn steer message",
96
+ tags: ["steer"],
97
+ request: { params: QueueMessageParamSchema },
112
98
  responses: {
113
99
  200: {
114
- description: "Message removed successfully",
115
- content: {
116
- "application/json": {
117
- schema: RemoveQueuedMessageResponseSchema
118
- }
119
- }
100
+ description: "Steer message removed successfully",
101
+ content: { "application/json": { schema: RemoveQueuedMessageResponseSchema } }
120
102
  },
121
103
  404: {
122
104
  description: "Session or message not found",
@@ -126,23 +108,100 @@ const removeQueuedMessageRoute = createRoute({
126
108
  500: InternalErrorResponse
127
109
  }
128
110
  });
129
- const clearQueueRoute = createRoute({
111
+ const clearSteerRoute = createRoute({
130
112
  method: "delete",
131
- path: "/queue/{sessionId}",
132
- summary: "Clear message queue",
133
- description: "Removes all messages from the queue for a session",
134
- tags: ["queue"],
113
+ path: "/steer/{sessionId}",
114
+ summary: "Clear steer queue",
115
+ description: "Removes all active-turn steer messages for a session",
116
+ tags: ["steer"],
117
+ request: { params: QueueSessionParamSchema },
118
+ responses: {
119
+ 200: {
120
+ description: "Steer queue cleared successfully",
121
+ content: { "application/json": { schema: ClearQueueResponseSchema } }
122
+ },
123
+ 404: {
124
+ description: "Session not found",
125
+ content: { "application/json": { schema: ApiErrorResponseSchema } }
126
+ },
127
+ 400: BadRequestErrorResponse,
128
+ 500: InternalErrorResponse
129
+ }
130
+ });
131
+ const getFollowUpRoute = createRoute({
132
+ method: "get",
133
+ path: "/follow-up/{sessionId}",
134
+ summary: "Get follow-up messages",
135
+ description: "Returns queued follow-up messages that will run after the active turn stops",
136
+ tags: ["follow-up"],
137
+ request: { params: QueueSessionParamSchema },
138
+ responses: {
139
+ 200: {
140
+ description: "List of follow-up messages",
141
+ content: { "application/json": { schema: GetQueueResponseSchema } }
142
+ },
143
+ 404: {
144
+ description: "Session not found",
145
+ content: { "application/json": { schema: ApiErrorResponseSchema } }
146
+ },
147
+ 400: BadRequestErrorResponse,
148
+ 500: InternalErrorResponse
149
+ }
150
+ });
151
+ const followUpRoute = createRoute({
152
+ method: "post",
153
+ path: "/follow-up/{sessionId}",
154
+ summary: "Queue follow-up input",
155
+ description: "Adds a message to run as a follow-up after the active turn stops",
156
+ tags: ["follow-up"],
135
157
  request: {
136
- params: QueueSessionParamSchema
158
+ params: QueueSessionParamSchema,
159
+ body: { content: { "application/json": { schema: QueueMessageBodySchema } } }
137
160
  },
161
+ responses: {
162
+ 201: {
163
+ description: "Follow-up message queued successfully",
164
+ content: { "application/json": { schema: QueueMessageResponseSchema } }
165
+ },
166
+ 404: {
167
+ description: "Session not found",
168
+ content: { "application/json": { schema: ApiErrorResponseSchema } }
169
+ },
170
+ 400: BadRequestErrorResponse,
171
+ 500: InternalErrorResponse
172
+ }
173
+ });
174
+ const removeFollowUpRoute = createRoute({
175
+ method: "delete",
176
+ path: "/follow-up/{sessionId}/{messageId}",
177
+ summary: "Remove follow-up message",
178
+ description: "Removes a specific queued follow-up message",
179
+ tags: ["follow-up"],
180
+ request: { params: QueueMessageParamSchema },
181
+ responses: {
182
+ 200: {
183
+ description: "Follow-up message removed successfully",
184
+ content: { "application/json": { schema: RemoveQueuedMessageResponseSchema } }
185
+ },
186
+ 404: {
187
+ description: "Session or message not found",
188
+ content: { "application/json": { schema: ApiErrorResponseSchema } }
189
+ },
190
+ 400: BadRequestErrorResponse,
191
+ 500: InternalErrorResponse
192
+ }
193
+ });
194
+ const clearFollowUpRoute = createRoute({
195
+ method: "delete",
196
+ path: "/follow-up/{sessionId}",
197
+ summary: "Clear follow-up queue",
198
+ description: "Removes all queued follow-up messages for a session",
199
+ tags: ["follow-up"],
200
+ request: { params: QueueSessionParamSchema },
138
201
  responses: {
139
202
  200: {
140
- description: "Queue cleared successfully",
141
- content: {
142
- "application/json": {
143
- schema: ClearQueueResponseSchema
144
- }
145
- }
203
+ description: "Follow-up queue cleared successfully",
204
+ content: { "application/json": { schema: ClearQueueResponseSchema } }
146
205
  },
147
206
  404: {
148
207
  description: "Session not found",
@@ -152,19 +211,78 @@ const clearQueueRoute = createRoute({
152
211
  500: InternalErrorResponse
153
212
  }
154
213
  });
214
+ function toQueueResponseMessage(message) {
215
+ return {
216
+ id: message.id,
217
+ content: message.content.map(toApiContentPart),
218
+ queuedAt: message.queuedAt,
219
+ ...message.metadata !== void 0 ? { metadata: message.metadata } : {},
220
+ ...message.kind !== void 0 ? { kind: message.kind } : {}
221
+ };
222
+ }
223
+ function messageNotFound(sessionId, messageId, scope) {
224
+ return new DextoRuntimeError(
225
+ `${scope}_message_not_found`,
226
+ scope,
227
+ ErrorType.NOT_FOUND,
228
+ "Message not found in queue",
229
+ { sessionId, messageId }
230
+ );
231
+ }
155
232
  function createQueueRouter(getAgent) {
156
233
  const app = new OpenAPIHono();
157
- return app.openapi(getQueueRoute, async (ctx) => {
234
+ return app.openapi(getSteerRoute, async (ctx) => {
235
+ const agent = await getAgent(ctx);
236
+ const { sessionId } = ctx.req.valid("param");
237
+ const responseMessages = (await agent.getSteerMessages(sessionId)).map(
238
+ toQueueResponseMessage
239
+ );
240
+ return ctx.json(
241
+ GetQueueResponseSchema.parse({
242
+ messages: responseMessages,
243
+ count: responseMessages.length
244
+ }),
245
+ 200
246
+ );
247
+ }).openapi(steerRoute, async (ctx) => {
248
+ const agent = await getAgent(ctx);
249
+ const { sessionId } = ctx.req.valid("param");
250
+ const { content: rawContent, kind } = ctx.req.valid("json");
251
+ const content = toContentInput(rawContent);
252
+ const result = await agent.steer(sessionId, {
253
+ content,
254
+ ...kind !== void 0 && { kind }
255
+ });
256
+ return ctx.json(
257
+ QueueMessageResponseSchema.parse({
258
+ queued: true,
259
+ id: result.id,
260
+ position: result.position
261
+ }),
262
+ 201
263
+ );
264
+ }).openapi(removeSteerRoute, async (ctx) => {
265
+ const agent = await getAgent(ctx);
266
+ const { sessionId, messageId } = ctx.req.valid("param");
267
+ const removed = await agent.removeSteerMessage(sessionId, messageId);
268
+ if (!removed) {
269
+ throw messageNotFound(sessionId, messageId, "steer");
270
+ }
271
+ return ctx.json(
272
+ RemoveQueuedMessageResponseSchema.parse({ removed: true, id: messageId }),
273
+ 200
274
+ );
275
+ }).openapi(clearSteerRoute, async (ctx) => {
158
276
  const agent = await getAgent(ctx);
159
277
  const { sessionId } = ctx.req.valid("param");
160
- const messages = await agent.getQueuedMessages(sessionId);
161
- const responseMessages = messages.map((message) => ({
162
- id: message.id,
163
- content: message.content.map(toApiContentPart),
164
- queuedAt: message.queuedAt,
165
- ...message.metadata !== void 0 ? { metadata: message.metadata } : {},
166
- ...message.kind !== void 0 ? { kind: message.kind } : {}
167
- }));
278
+ const count = await agent.clearSteerQueue(sessionId);
279
+ return ctx.json(ClearQueueResponseSchema.parse({ cleared: true, count }), 200);
280
+ }).openapi(getFollowUpRoute, async (ctx) => {
281
+ const agent = await getAgent(ctx);
282
+ const { sessionId } = ctx.req.valid("param");
283
+ const responseMessages = (await agent.getFollowUpMessages(sessionId)).map(
284
+ toQueueResponseMessage
285
+ );
168
286
  return ctx.json(
169
287
  GetQueueResponseSchema.parse({
170
288
  messages: responseMessages,
@@ -172,13 +290,12 @@ function createQueueRouter(getAgent) {
172
290
  }),
173
291
  200
174
292
  );
175
- }).openapi(queueMessageRoute, async (ctx) => {
293
+ }).openapi(followUpRoute, async (ctx) => {
176
294
  const agent = await getAgent(ctx);
177
295
  const { sessionId } = ctx.req.valid("param");
178
- const { content: rawContent } = ctx.req.valid("json");
296
+ const { content: rawContent, kind } = ctx.req.valid("json");
179
297
  const content = toContentInput(rawContent);
180
- const { kind } = ctx.req.valid("json");
181
- const result = await agent.queueMessage(sessionId, {
298
+ const result = await agent.followUp(sessionId, {
182
299
  content,
183
300
  ...kind !== void 0 && { kind }
184
301
  });
@@ -190,27 +307,21 @@ function createQueueRouter(getAgent) {
190
307
  }),
191
308
  201
192
309
  );
193
- }).openapi(removeQueuedMessageRoute, async (ctx) => {
310
+ }).openapi(removeFollowUpRoute, async (ctx) => {
194
311
  const agent = await getAgent(ctx);
195
312
  const { sessionId, messageId } = ctx.req.valid("param");
196
- const removed = await agent.removeQueuedMessage(sessionId, messageId);
313
+ const removed = await agent.removeFollowUpMessage(sessionId, messageId);
197
314
  if (!removed) {
198
- throw new DextoRuntimeError(
199
- "queued_message_not_found",
200
- "queue",
201
- ErrorType.NOT_FOUND,
202
- "Message not found in queue",
203
- { sessionId, messageId }
204
- );
315
+ throw messageNotFound(sessionId, messageId, "follow_up");
205
316
  }
206
317
  return ctx.json(
207
318
  RemoveQueuedMessageResponseSchema.parse({ removed: true, id: messageId }),
208
319
  200
209
320
  );
210
- }).openapi(clearQueueRoute, async (ctx) => {
321
+ }).openapi(clearFollowUpRoute, async (ctx) => {
211
322
  const agent = await getAgent(ctx);
212
323
  const { sessionId } = ctx.req.valid("param");
213
- const count = await agent.clearMessageQueue(sessionId);
324
+ const count = await agent.clearFollowUpQueue(sessionId);
214
325
  return ctx.json(ClearQueueResponseSchema.parse({ cleared: true, count }), 200);
215
326
  });
216
327
  }
@@ -290,7 +290,7 @@ const cancelRoute = (0, import_zod_openapi.createRoute)({
290
290
  method: "post",
291
291
  path: "/sessions/{sessionId}/cancel",
292
292
  summary: "Cancel Session Run",
293
- description: "Cancels an in-flight agent run for the specified session. By default (soft cancel), only the current LLM call is cancelled and queued messages continue processing. Set clearQueue=true for hard cancel to also clear any queued messages.",
293
+ description: "Cancels an in-flight agent run for the specified session. By default (soft cancel), only the current LLM call is cancelled and queued steer/follow-up input continues processing. Set clearQueue=true for hard cancel to also clear queued steer/follow-up input.",
294
294
  tags: ["sessions"],
295
295
  request: {
296
296
  params: import_zod_openapi.z.object({ sessionId: import_zod_openapi.z.string().describe("Session identifier") }),
@@ -299,7 +299,7 @@ const cancelRoute = (0, import_zod_openapi.createRoute)({
299
299
  "application/json": {
300
300
  schema: import_zod_openapi.z.object({
301
301
  clearQueue: import_zod_openapi.z.boolean().optional().default(false).describe(
302
- "If true (hard cancel), clears queued messages. If false (soft cancel, default), queued messages continue processing."
302
+ "If true (hard cancel), clears queued steer/follow-up input. If false (soft cancel, default), queued input continues processing."
303
303
  )
304
304
  }).strict()
305
305
  }
@@ -315,8 +315,10 @@ const cancelRoute = (0, import_zod_openapi.createRoute)({
315
315
  schema: import_zod_openapi.z.object({
316
316
  cancelled: import_zod_openapi.z.boolean().describe("Whether a run was cancelled"),
317
317
  sessionId: import_zod_openapi.z.string().describe("Session ID"),
318
- queueCleared: import_zod_openapi.z.boolean().describe("Whether queued messages were cleared"),
319
- clearedCount: import_zod_openapi.z.number().describe("Number of queued messages cleared (0 if soft cancel)")
318
+ queueCleared: import_zod_openapi.z.boolean().describe("Whether queued steer/follow-up input was cleared"),
319
+ clearedCount: import_zod_openapi.z.number().describe(
320
+ "Number of queued input messages cleared (0 if soft cancel)"
321
+ )
320
322
  }).strict()
321
323
  }
322
324
  }
@@ -691,20 +693,17 @@ function createSessionsRouter(getAgent, sessionSseSubscriber) {
691
693
  clearQueue = body?.clearQueue ?? false;
692
694
  } catch {
693
695
  }
694
- let clearedCount = 0;
695
- if (clearQueue) {
696
- try {
697
- clearedCount = await agent.clearMessageQueue(sessionId);
698
- agent.logger.debug(
699
- `Hard cancel: cleared ${clearedCount} queued message(s) for session: ${sessionId}`
700
- );
701
- } catch {
702
- }
703
- }
704
696
  const cancelled = await agent.cancel(sessionId);
705
697
  if (!cancelled) {
706
698
  agent.logger.debug(`No in-flight run to cancel for session: ${sessionId}`);
707
699
  }
700
+ let clearedCount = 0;
701
+ if (clearQueue) {
702
+ clearedCount = await agent.clearPendingInput(sessionId);
703
+ agent.logger.debug(
704
+ `Hard cancel: cleared ${clearedCount} queued input message(s) for session: ${sessionId}`
705
+ );
706
+ }
708
707
  return ctx.json(
709
708
  {
710
709
  cancelled,
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAoBhE,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAExF,QAAA,MAAM,mBAAmB;;iBAI+B,CAAC;AAazD,QAAA,MAAM,oCAAoC;;;;;kBA6B+B,CAAC;AAuC1E,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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@@ -282,7 +282,7 @@ const cancelRoute = createRoute({
282
282
  method: "post",
283
283
  path: "/sessions/{sessionId}/cancel",
284
284
  summary: "Cancel Session Run",
285
- description: "Cancels an in-flight agent run for the specified session. By default (soft cancel), only the current LLM call is cancelled and queued messages continue processing. Set clearQueue=true for hard cancel to also clear any queued messages.",
285
+ description: "Cancels an in-flight agent run for the specified session. By default (soft cancel), only the current LLM call is cancelled and queued steer/follow-up input continues processing. Set clearQueue=true for hard cancel to also clear queued steer/follow-up input.",
286
286
  tags: ["sessions"],
287
287
  request: {
288
288
  params: z.object({ sessionId: z.string().describe("Session identifier") }),
@@ -291,7 +291,7 @@ const cancelRoute = createRoute({
291
291
  "application/json": {
292
292
  schema: z.object({
293
293
  clearQueue: z.boolean().optional().default(false).describe(
294
- "If true (hard cancel), clears queued messages. If false (soft cancel, default), queued messages continue processing."
294
+ "If true (hard cancel), clears queued steer/follow-up input. If false (soft cancel, default), queued input continues processing."
295
295
  )
296
296
  }).strict()
297
297
  }
@@ -307,8 +307,10 @@ const cancelRoute = createRoute({
307
307
  schema: z.object({
308
308
  cancelled: z.boolean().describe("Whether a run was cancelled"),
309
309
  sessionId: z.string().describe("Session ID"),
310
- queueCleared: z.boolean().describe("Whether queued messages were cleared"),
311
- clearedCount: z.number().describe("Number of queued messages cleared (0 if soft cancel)")
310
+ queueCleared: z.boolean().describe("Whether queued steer/follow-up input was cleared"),
311
+ clearedCount: z.number().describe(
312
+ "Number of queued input messages cleared (0 if soft cancel)"
313
+ )
312
314
  }).strict()
313
315
  }
314
316
  }
@@ -683,20 +685,17 @@ function createSessionsRouter(getAgent, sessionSseSubscriber) {
683
685
  clearQueue = body?.clearQueue ?? false;
684
686
  } catch {
685
687
  }
686
- let clearedCount = 0;
687
- if (clearQueue) {
688
- try {
689
- clearedCount = await agent.clearMessageQueue(sessionId);
690
- agent.logger.debug(
691
- `Hard cancel: cleared ${clearedCount} queued message(s) for session: ${sessionId}`
692
- );
693
- } catch {
694
- }
695
- }
696
688
  const cancelled = await agent.cancel(sessionId);
697
689
  if (!cancelled) {
698
690
  agent.logger.debug(`No in-flight run to cancel for session: ${sessionId}`);
699
691
  }
692
+ let clearedCount = 0;
693
+ if (clearQueue) {
694
+ clearedCount = await agent.clearPendingInput(sessionId);
695
+ agent.logger.debug(
696
+ `Hard cancel: cleared ${clearedCount} queued input message(s) for session: ${sessionId}`
697
+ );
698
+ }
700
699
  return ctx.json(
701
700
  {
702
701
  cancelled,