Skip to content

fix(cli): reset operational limits for each request - #364

Merged
Patel230 merged 1 commit into
mainfrom
fix/request-safety-limits
Nov 3, 2026
Merged

Patel230 merged 1 commit into
mainfrom
fix/request-safety-limits

Conversation

@Patel230

@Patel230 Patel230 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The interactive session accumulated Bash/tool/write/turn counters across unrelated user requests. After earlier work reached 100 Bash commands, a new repository question could stop after only a couple of commands and subsequent follow-ups remained blocked.

Start fresh operational counters once at the beginning of each streamed user request, keeping the configured limits and accumulated session spending. Limits still apply across all model/tool iterations within a request. When an operational limit stops a run, the CLI explains that a follow-up receives fresh request limits; spending-limit messages do not make that promise.

Validation: all 156 Go packages passed with the race detector; formatting, vet, architecture boundaries, lint (zero issues), and build passed. Regression tests cover the reported 100-prior-Bash-calls case, enforcing a current request's limit, successfully answering its follow-up, resetting every operational counter, preserving configured limits, and preserving the session spending cap across follow-ups.

reflect verify passed all 156 Go package checks. Its overall result remains failed because the existing local security log has a broken hash chain at entry 200; historical audit records are unchanged.

@Patel230
Patel230 merged commit 4c3b7d7 into main Nov 3, 2026
23 checks passed
@Patel230
Patel230 deleted the fix/request-safety-limits branch November 3, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant