Skip to content

fix(harness): reload continuation state after Substrate restore - #2823

Merged
EItanya merged 1 commit into
kagent-dev:mainfrom
supreme-gg-gg:fix/harness-continuation
Sep 14, 2026
Merged

EItanya merged 1 commit into
kagent-dev:mainfrom
supreme-gg-gg:fix/harness-continuation

Conversation

@supreme-gg-gg

@supreme-gg-gg supreme-gg-gg commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

After #2715 , Substrate can restore /data into a process resumed from a golden snapshot after the continuation store is initialized. Codex and Claude were reading stale in-memory state that was preserved in the golden snapshot (with an empty initial session ID), despite state.json containing the correct native session ID. As a result, each subsequent turn started a new session and overwrote the restored continuation state.

This change makes state.json authoritative by reloading it on every Load and Bind.

Signed-off-by: Jet Chiang <[email protected]>
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Sep 14, 2026
@EItanya
EItanya added this pull request to the merge queue Sep 14, 2026
Merged via the queue into kagent-dev:main with commit 42d3301 Sep 14, 2026
30 checks passed
QuentinBisson added a commit to giantswarm/kagent-upstream that referenced this pull request Sep 22, 2026
…drops the rows upstream merged

Continuation re-read (kagent-dev#2823), the two controller metrics commits (kagent-dev#2886),
the compaction cherry-picks (kagent-dev#2790) and the harness apk upgrade (kagent-dev#2756)
leave the table; the chart's harness.compaction row joins it.
QuentinBisson added a commit to giantswarm/kagent-upstream that referenced this pull request Sep 22, 2026
…drops the rows upstream merged

Continuation re-read (kagent-dev#2823), the two controller metrics commits (kagent-dev#2886),
the compaction cherry-picks (kagent-dev#2790) and the harness apk upgrade (kagent-dev#2756)
leave the table; the chart's harness.compaction row joins it.
QuentinBisson added a commit to giantswarm/kagent-upstream that referenced this pull request Sep 22, 2026
…drops the rows upstream merged

Continuation re-read (kagent-dev#2823), the two controller metrics commits (kagent-dev#2886),
the compaction cherry-picks (kagent-dev#2790) and the harness apk upgrade (kagent-dev#2756)
leave the table; the chart's harness.compaction row joins it.
QuentinBisson added a commit to giantswarm/kagent-upstream that referenced this pull request Sep 22, 2026
…drops the rows upstream merged

Continuation re-read (kagent-dev#2823), the two controller metrics commits (kagent-dev#2886),
the compaction cherry-picks (kagent-dev#2790) and the harness apk upgrade (kagent-dev#2756)
leave the table; the chart's harness.compaction row joins it.
QuentinBisson added a commit to giantswarm/kagent-upstream that referenced this pull request Sep 22, 2026
…drops the rows upstream merged

Continuation re-read (kagent-dev#2823), the two controller metrics commits (kagent-dev#2886),
the compaction cherry-picks (kagent-dev#2790) and the harness apk upgrade (kagent-dev#2756)
leave the table; the chart's harness.compaction row joins it.
QuentinBisson pushed a commit to giantswarm/kagent-upstream that referenced this pull request Sep 22, 2026
| 2026-09-22 18:30 | `800015d` | `844ea06` (2026-09-22) | `5df8ba3` → `9276b46` | 89 + 3 own (the chart's `harness.compaction`, the pin annotation, the Substrate pin on the line's dev build `0.0.0-dev.giantswarm.2026-09-22.13-15-52.hb3137f0` of v0.2.0-beta4) | `3999b3b` fix(harness): re-read the continuation state from /data on every turn — superseded upstream (kagent-dev#2823, `42d3301`); `e66fb5a` `229ae56` `cc11cc9` `646e7fe` the context compaction cherry-picks — superseded upstream (kagent-dev#2790, `7471879`, on the Harness); `79d5300` `7485ebf` the controller metrics — merged upstream squashed (kagent-dev#2886, `844ea06`) | by hand — the sync ([#60](#60)) stopped on the continuation patch; the third step of the 2026-09-22 three-line move (agentgateway `main@08f4563b`, Substrate v0.2.0-beta4); the per-source git credential reshaped onto upstream kagent-dev#2868's gateway injection (kagent-dev#2899), upstream's new `nightly.yaml` publish and its three actions removed in the fork's CI commit; candidate [#64](#64), 35 checks green |
QuentinBisson added a commit to giantswarm/kagent-upstream that referenced this pull request Sep 24, 2026
…drops the rows upstream merged

Continuation re-read (kagent-dev#2823), the two controller metrics commits (kagent-dev#2886),
the compaction cherry-picks (kagent-dev#2790) and the harness apk upgrade (kagent-dev#2756)
leave the table; the chart's harness.compaction row joins it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants