Skip to content

fix(server): Let usage-limited threads auto-resume on SQLite - #12

Closed
mwolson wants to merge 651 commits into
contrib/ctm/execution-selection-admissionfrom
contrib/ctm/sqlite-recovery-flags
Closed

mwolson wants to merge 651 commits into
contrib/ctm/execution-selection-admissionfrom
contrib/ctm/sqlite-recovery-flags

Conversation

@mwolson

@mwolson mwolson commented Sep 27, 2026

Copy link
Copy Markdown
Owner

What Changed

Threads that hit a provider usage limit are picked up again by the usage-limit recovery sweep on the SQLite store. With auto-resume enabled they continue after the limit resets, and snoozed threads are held until the reset time, matching the in-memory store.

Why

The sweep's query bound the auto-resume and snooze settings as JavaScript booleans. The SQLite driver cannot bind booleans, so every sweep failed with "Provided value cannot be bound to SQLite parameter" and no limited thread was ever resumed. Binding them as numbers fixes the query without changing its logic.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

juliusmarminge and others added 30 commits September 23, 2026 19:10
…dotgg#10880)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Mike Olson <mwolson@member.fsf.org>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#9897)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ingdotgg#8464)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#9907)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#9905)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…gg#9928)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
extoci and others added 24 commits September 23, 2026 19:10
…gg#12790)

Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…otgg#12409)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
…tgg#11870)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…#12839)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Background-task notifications and delegated completions queued behind a
held queue are hidden from the queue UI, so the Resume queue control never
appeared, yet thread.settle counted them as active work. Settle now cancels
those automatic runs in the same transaction; user-queued messages still
block it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep main's recycled mobile list and per-row clock scoping alongside V2 runtime ownership, subagent filtering, and unread completion labels. Preserve provider compatibility diagnostics and shared PR badge controls while retaining V2 authentication actions and linked-PR tooltips. Port main's PR batching and settlement quota improvements into the V2 services.
@mwolson
mwolson added this pull request to stack #36 September 27, 2026 21:48
@mwolson
mwolson force-pushed the contrib/ctm/execution-selection-admission branch from 189b969 to 32c37ae Compare October 1, 2026 12:38
@mwolson
mwolson removed this pull request from stack #36 October 1, 2026 12:39
@mwolson

mwolson commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Absorbed upstream: pingdotgg#13877 usage-limit-queue-hold binds the recovery flags the same way. Closing; the branch is kept.

@mwolson mwolson closed this Oct 1, 2026
@mwolson
mwolson deleted the contrib/ctm/sqlite-recovery-flags branch October 3, 2026 20:29
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.