File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -420,8 +420,8 @@ await client.ai.pendingActions.get('pa_1');
420420// Listing takes `ai:read`. Deciding (approve or reject) is the person's own
421421// act: only the person the call ran as decides their item, on their signed-in
422422// session to the app. Another user's `ai:approve` does not decide it; a client
423- // on an API key or token (even the person's own) is refused, and so is an AI
424- // identity: such a client lists, it does not decide . Handle the refusal.
423+ // on an API key or token (even the person's own) lists, it does not decide; an
424+ // AI identity is refused too . Handle the refusal.
425425const outcome = await client .ai .pendingActions .approve (' pa_1' );
426426// CHECK `outcome.status`: approve runs the tool, and a tool that fails comes
427427// back { status: 'failed', error } on HTTP 200 — the approval succeeded, the
Original file line number Diff line number Diff line change @@ -7718,8 +7718,8 @@ export class ObjectStackClient {
77187718 * Deciding (approve or reject) is the person's own act: only the person
77197719 * the call ran as decides their item, and only on their signed-in session
77207720 * to the app. Another user's `ai:approve` does not decide it; a client on
7721- * an API key or token (even the person's own) is refused, and so is an AI
7722- * identity: such a client can list and get, never decide .
7721+ * an API key or token (even the person's own) can list and get, never
7722+ * decide; an AI identity is refused too .
77237723 */
77247724 pendingActions : {
77257725 /** Queued actions, newest first. */
Original file line number Diff line number Diff line change @@ -167,9 +167,9 @@ is listed in Studio's **AI Pending Actions** inbox (or via
167167person the call ran as approves or rejects the item, in the app on their
168168signed-in session. Another user's ` ai:approve ` does not decide it; an API key
169169or token (even the person's own) is refused, and so is an AI identity and any
170- call that arrives through an AI door. Neither the model's own confirmation nor
171- the caller's ` confirm ` counts. So an operator script lists items and never
172- decides them; a second approver goes through the approvals engine (the ` held `
170+ call that arrives through an AI door. The model's own confirmation does not
171+ decide the item, and neither does a ` confirm ` on the call: the item waits for
172+ the person. So an operator script lists items and never decides them; a second approver goes through the approvals engine (the ` held `
173173outcome). Whether * your* action is queued is
174174decided entirely by the skip rule above — ` actionSkipReason(action, ctx) ` and
175175` actionRequiresApproval(action) ` (from ` @objectstack/service-ai ` ) answer both
You can’t perform that action at this time.
0 commit comments