Skip to content

[PR] fix: retain prior summaries across Threads reforges - #7024

Closed
Afloat16 wants to merge 2 commits into
ranxianglei:masterfrom
Afloat16:2026-11-17_threads-summary-history
Closed

Afloat16 wants to merge 2 commits into
ranxianglei:masterfrom
Afloat16:2026-11-17_threads-summary-history

Conversation

@Afloat16

Copy link
Copy Markdown
Contributor

Problem

The second and subsequent Anthropic Threads reforges summarize only the raw entries after foldedBefore. The previously saved foldedSummary is omitted, but the resulting fresh create replaces the entire old thread. Earlier folded goals and decisions therefore stop being available to the summarizer and the rebuilt thread.

Change

Include the previous folded summary before the newly folded transcript in the summary side-call. The first fold keeps its original input. Previously folded raw entries remain excluded; client system/tools and the tail ring remain verbatim. The saved replacement summary becomes the input to the next fold, including after reopening the mirror store.

The Threads reforge path is already gated by !pluginMode in prepareAnthropic; plugin-owned compression retains its existing path. A negative HTTP test pins that boundary.

Verification

  • Base: 301e1a5459a77d5578206927c8062a58381af642 (0.1.215).
  • Two new repeated-reforge HTTP regressions fail on the base because the second summary request lacks the prior summary.
  • Complete Threads lane suite: 13 tests passed. Real loopback proxy/upstream requests and SQLite mirror storage exercise three consecutive folds, reopening the mirror between folds, unchanged tail/system/tools, plugin ownership, rollout-off, legacy storage, and side-call failure/cooldown behavior.
  • npm run typecheck, npm run build, and git diff --check: passed.
  • The zero-token Codex e2e preflight finds codex-cli 0.167.0-alpha.4 and the built artifact, but the configured local upstream at 127.0.0.1:8199 is unreachable. The real-model four-phase suite was not run; its gate remains unchanged.

No kernel, config-schema, persistence-version, dependency, or protocol-shape changes. This is distinct from #3569's wrong side-call endpoint and retry cooldown.

Fixes #7023

@ranxianglei ranxianglei changed the title fix: retain prior summaries across Threads reforges [PR] fix: retain prior summaries across Threads reforges Nov 17, 2026
Merge upstream master 6a641f3, including the architecture module-map and schedule-independent ranxianglei#2929 probe fixes.

Preserve the existing PR head and exact contribution patch. Validation of this refreshed head runs in upstream CI; no local test rerun is claimed.
@ranxianglei

Copy link
Copy Markdown
Owner

This fix is included verbatim (original commits and authorship preserved) in the merged batch PR #7074 — the changes are already on master. Closing to avoid a duplicate merge. 该修复已随批量 PR #7074 原样合入 master,为避免重复合并,关闭此 PR。

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.

Repeated Anthropic Threads reforge drops the previous folded summary

2 participants