Skip to content

fix: preserve headless continuity and remove timeout causes - #93

Closed
KayzenRoot wants to merge 5 commits into
mainfrom
upstream-pr/176
Closed

KayzenRoot wants to merge 5 commits into
mainfrom
upstream-pr/176

Conversation

@KayzenRoot

Copy link
Copy Markdown
Owner

Summary

  • Preserve bounded prior user/assistant history for headless and scheduled turns while explicitly treating prior history as untrusted context.
  • Keep the current request last and authoritative so an older receipt or instruction cannot override the new turn.
  • Make completed computer-audit retention proportional to the overflow above 1,000 rows instead of repeatedly pruning through a growing top-1,000 anti-join.
  • Keep a real CopilotKit runtime telemetry probe without spawning nested cold Node+tsx processes for every variant; cover opt-outs, sample-rate zero, and fallback identity in the bounded SetupTelemetry tests.
  • Align the offline telemetry flush assertion with its bounded delivery contract instead of requiring a full 256-event drain in one pass.

No timeout values were increased.

Validation

  • npm run check-format — PASS
  • npm run lint — PASS
  • npm run typecheck — PASS
  • npm test — PASS (56/56 test files, 343/343 tests)
  • npm run build — PASS
  • production build smoke on an isolated port/database — HTTP 200, live mode
  • npm run knip and npm run knip:production — executed; they report repository-level unused dependency/export findings that already exist on main (for example eslint-plugin-react-hooks and the existing slackIdentity export). No dependency is added by this PR.

Scope

No UI behavior, setup configuration, credentials, production data, or external service integration is changed by this PR.


Migrated from upstream. This pull request was originally opened in
CopilotKit/OpenDots#176
by @Flavio459 on 2026-10-27.
Original state upstream: open.
Head branch upstream: Flavio459/OpenDots:fix/headless-history-continuity-20261026 @ e7b2383.
Note: #NNN references in the description above are UPSTREAM issue/PR numbers
and do not resolve to the same items in this fork.
The body is preserved verbatim; discussion comments follow with per-author attribution.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-27T02:07:02.528892Z
We couldn’t complete this review. Comment @codex review to try again.
e7b2383 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.

Copilot AI lite review requested due to automatic review settings November 5, 2026 13:08
@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@ecc-tools

ecc-tools Bot commented Nov 5, 2026

Copy link
Copy Markdown

ECC Tools / Security Evidence

Commit: e7b2383beb90842fbc84cbeb83ad8e5c2b610984

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 5 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@ecc-tools

ecc-tools Bot commented Nov 5, 2026

Copy link
Copy Markdown

ECC Tools / PR Risk Taxonomy

Commit: e7b2383beb90842fbc84cbeb83ad8e5c2b610984

PR taxonomy review recommended (neutral)

Detected 1 PR taxonomy bucket(s): CI/CD Recommendation.

Scanned 5 changed file(s).

Roadmap taxonomy buckets:

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • 3 CI or workflow path(s) changed

Paths:

  • tests/platform-headless-history.test.ts
  • tests/setup-telemetry.test.ts
  • tests/telemetry.test.ts

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@ecc-tools

ecc-tools Bot commented Nov 5, 2026

Copy link
Copy Markdown

ECC Tools / Reference Set Readiness

Commit: e7b2383beb90842fbc84cbeb83ad8e5c2b610984

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 5 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@ecc-tools

ecc-tools Bot commented Nov 5, 2026

Copy link
Copy Markdown

ECC Tools / Hosted Promotion Readiness

Commit: e7b2383beb90842fbc84cbeb83ad8e5c2b610984

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 5 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 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 ⚠️ Failed 2026-11-05T13:09:18.487631Z
We couldn’t complete this review. Comment @codex review to try again.
e7b2383 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.

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@Flavio459 — comment — 2026-10-27 (original):

@codex review

@KayzenRoot

Copy link
Copy Markdown
Owner Author

@chatgpt-codex-connector[bot] — comment — 2026-10-27 (original):

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

3 similar comments
@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Setup repeatedly failed. Update the setup script or commit, then try again later.
ℹ️ 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".

@KayzenRoot

Copy link
Copy Markdown
Owner Author

Closing as part of the backlog triage. This fork replaced the hosted CopilotKit runtime with a self-hosted PostgreSQL-backed AG-UI runtime, so this patch was written against code that no longer exists in that form.

The idea is preserved in the PR history and is worth reopening against the current runtime if it is still wanted — the branch and the diff stay available here. See docs/fork/EXECUTION-ORDER.md for how the remaining work is ordered.

@KayzenRoot KayzenRoot closed this Nov 6, 2026
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.

3 participants