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 faa5c01
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: services/www/src/docs/content/build/plugins/effect.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1387,9 +1387,11 @@ Stopping hooks follow these rules:
1387
1387
- Multiple hooks run in registration order, and later hooks see the current decision. A gate needing the final word registers last.
1388
1388
- At most two continuations are granted per turn. Cap exhaustion stops the turn silently without calling hooks.
1389
1389
-`continuations` is the pre-increment count, so hooks can enforce a tighter limit against it.
1390
-
-`step` is the model steps executed this turn;`stepsLimit` is the agent's configured step limit, when set.
1391
-
- A throwing hook stops the turn instead of failing it; interruption still propagates. An empty or whitespace-only `text` abstains and the turn ends.
1390
+
-`step` is the model steps executed this turn relative to the current step budget: a manual compaction resets the count, mirroring the agent step budget, so a vote right after one can report `step: 0`.`stepsLimit` is the agent's configured step limit, when set.
1391
+
- A throwing hook stops the turn instead of failing it, and the failure is logged; interruption still propagates. An empty or whitespace-only `text` abstains and the turn ends.
1392
1392
- Provider scoping is unavailable for `experimental.stopping`: the event carries no model, so a `providerID` voter would never fire.
1393
+
- The vote fires only when no fresh input is waiting: a queued prompt (or pending move) at the boundary starts a new turn instead, with no vote for the finished turn.
1394
+
- A location reload or session move landing exactly on the turn boundary ends the turn without a vote. The successor drain starts fresh with the counter at 0 — a missed continuation, never an extra one. A process crash at the same point behaves the same way.
1393
1395
1394
1396
This hook is experimental and its name or shape may change.
Copy file name to clipboardExpand all lines: services/www/src/docs/content/build/plugins/index.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1547,9 +1547,11 @@ Stopping hooks follow these rules:
1547
1547
- Multiple hooks run in registration order, and later hooks see the current decision. A gate needing the final word registers last.
1548
1548
- At most two continuations are granted per turn. Cap exhaustion stops the turn silently without calling hooks.
1549
1549
-`continuations` is the pre-increment count, so hooks can enforce a tighter limit against it.
1550
-
-`step` is the model steps executed this turn;`stepsLimit` is the agent's configured step limit, when set.
1551
-
- A throwing hook stops the turn instead of failing it; interruption still propagates. An empty or whitespace-only `text` abstains and the turn ends.
1550
+
-`step` is the model steps executed this turn relative to the current step budget: a manual compaction resets the count, mirroring the agent step budget, so a vote right after one can report `step: 0`.`stepsLimit` is the agent's configured step limit, when set.
1551
+
- A throwing hook stops the turn instead of failing it, and the failure is logged; interruption still propagates. An empty or whitespace-only `text` abstains and the turn ends.
1552
1552
- Provider scoping is unavailable for `experimental.stopping`: the event carries no model, so a `providerID` voter would never fire.
1553
+
- The vote fires only when no fresh input is waiting: a queued prompt (or pending move) at the boundary starts a new turn instead, with no vote for the finished turn.
1554
+
- A location reload or session move landing exactly on the turn boundary ends the turn without a vote. The successor drain starts fresh with the counter at 0 — a missed continuation, never an extra one. A process crash at the same point behaves the same way.
1553
1555
1554
1556
This hook is experimental and its name or shape may change.
0 commit comments