Skip to content

fix(server): deliver safe cooperative requests to active agents - #320

Merged
lastobelus merged 9 commits into
lastcode/mainfrom
lastcode/cooperative-update-pause
Oct 7, 2026
Merged

lastobelus merged 9 commits into
lastcode/mainfrom
lastcode/cooperative-update-pause

Conversation

@lastobelus

@lastobelus lastobelus commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

A cooperative pause sent through the thread CLI queues behind active work, so maintenance can time out before the agent receives the request.

Add opt-in --steer-native delivery to the observed active run. The server rejects a changed run or selection and requires a provider that supports targeted, non-interrupting steering with rejection after completion. Codex supplies that capability; other providers retain their ordinary behavior. Strict delivery never queues, restarts, interrupts tools, or creates a late follow-up. Older servers reject its distinct wire mode.

--wait follows shared-run completion, so the guide requires a unique acknowledgement and a current idle check before acting on a cooperative pause.

The server-test CI jobs also configure HTTPS package mirror failover before installing browser dependencies. Both the runner-native and custom mirror lists are configured, so dependency setup cannot keep retrying the original HTTP mirror until the job expires.

Validation: 345 focused tests across CLI, contracts, command policy, orchestration, effect execution, provider control and Codex adapter passed; targeted lint/format checks passed. The isolated APT regression test executes the real action shell block against fixture files and verifies both mirror lists, source rewriting, preserved vendor configuration and bounded timeouts; both workflow YAML files parse. Independent source review identified and fixed provider-side late-delivery fallback. GitHub review fixes settle completed-target races, preserve the saved next-turn model, distinguish definite Codex review/compact rejections from retryable failures, and settle deleted or detached execution targets without failed background jobs. The latest stale-target fixes pass 105 refreshed control, runtime, worker and ordinary-steering tests. Real deletion and same-session attempt-replacement regressions settle strict delivery on its first outbox attempt; the restart becomes runnable immediately. Pending targets and transient session/storage/adapter failures retain their existing behavior. Targeted lint and formatting pass.

Model: GPT-6.1 Sol (Extra High), with GPT-6 Astra review. Harness: Codex.

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T19:43:50.327820Z 9a1a648 Manual request
ℹ️ 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.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@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: 22714f111e

ℹ️ 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".

@lastobelus
lastobelus force-pushed the lastcode/cooperative-update-pause branch from 22714f1 to 47b16cc Compare October 7, 2026 17:27
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@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: 47b16cc266

ℹ️ 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".

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@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: a2479d4150

ℹ️ 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".

Add opt-in native steering to the thread CLI and enforce it under the server dispatch lock. Reject stale targets, selection changes, unsupported providers, and delivery that interrupts tools. Preserve the normal queue default and prevent late delivery from starting a follow-up turn.

Validation: 171 focused tests and targeted lint pass.

Model: GPT-6.1-Sol Extra High
Harness: Codex

Carry-Group: tooling
Carry-Observation: Cooperative update coordination must reach active work without queueing behind or interrupting it.
Preserve the running model and saved next-turn choice for native-only requests. Settle a completed target without a follow-up or a failed background job.

Carry-Group: tooling
Classify validated Codex review and compact rejections as final non-delivery. Preserve transient failures and settle terminal targets without follow-up runs or failed background jobs.

Carry-Group: tooling
@lastobelus
lastobelus force-pushed the lastcode/cooperative-update-pause branch from a2479d4 to 2c9b9f4 Compare October 7, 2026 18:28
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 2c9b9f4471

ℹ️ 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".

Apply HTTPS mirror failover to server jobs and replace both runner mirror lists so Ubuntu dependency downloads do not exhaust the job before tests start.

Carry-Group: build-ci
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@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: ee964f0bbe

ℹ️ 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".

Treat missing or replaced recorded targets and ended runs as definite non-delivery. Preserve ordinary completed-turn fallback and retryable storage or provider failures.

Carry-Group: tooling
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@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: e7f42e52c7

ℹ️ 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".

Treat an absent exact run or persisted message as definite non-delivery before session lookup. Preserve pending targets and transient errors, and prove an obsolete steer no longer blocks the restart effect.

Carry-Group: tooling
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 9a1a648d8d

ℹ️ 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".

@lastobelus
lastobelus merged commit 0670818 into lastcode/main Oct 7, 2026
17 checks passed
@lastobelus
lastobelus deleted the lastcode/cooperative-update-pause branch October 7, 2026 19:51
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