Skip to content

Keep queued automation fires pending through completion - #1922

Merged
currentbits merged 3 commits into
mainfrom
automation-queued-lifecycle
Nov 8, 2026
Merged

currentbits merged 3 commits into
mainfrom
automation-queued-lifecycle

Conversation

@currentbits

@currentbits currentbits commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

When all global run slots are occupied, new-thread automation fires can be counted as finished while still queued. Repeated schedule fires can also overwrite earlier pending outcomes or delete queued threads through retention.

Track each accepted fire until its actual terminal outcome, including stable history entries while waiting for a runner-assigned run ID. Keep queued threads and pending history beyond the retention cap, preserve legacy pending state, and retain the queue marker through admission preflight. Normal and Ask-mode admission clear the marker when entering working; Ask also honors the queued prompt's existing transcript entry. Fixed continue/fresh destinations still skip full queues without changing their context.

Validation: 232 backend tests across 15 automation/runner/queue suites, 54 automation renderer tests, core build, typecheck and diff checks passed on Node 22.23.2. Nine regression cases use real createRunner queues and fixture providers, covering repeated scheduled fires, retention, private/project mixed histories, legacy state, cancellation, admission/launch failures, switching a queued fire to Ask, and fixed-destination skips. Backend checks ran with inherited CODER_* settings stripped and real provider CLIs excluded from PATH.

Closes #1920.

Created with GPT-6.1 Sol in Codex.

Solenta and others added 2 commits November 7, 2026 20:06
Solenta-Message-Id: 984058e3-8bc1-4846-a877-07792dcd1901
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T19:19:27.551296Z 3af7c95 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3af7c95ddf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread electron/runner.js Resolved
@currentbits
currentbits merged commit 59fd4ff into main Nov 8, 2026
14 checks passed
@currentbits
currentbits deleted the automation-queued-lifecycle branch November 8, 2026 12:37
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.

Preserve automation run lifecycle while waiting for global queue capacity

1 participant