Skip to content

fix: stop recording resume version metadata#786

Merged
kermanx merged 1 commit into
mainfrom
xtr/stop-resume-metadata
Jun 15, 2026
Merged

fix: stop recording resume version metadata#786
kermanx merged 1 commit into
mainfrom
xtr/stop-resume-metadata

Conversation

@kermanx

@kermanx kermanx commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue. This addresses a focused maintainer request to stop persisting resume version markers in agent record metadata.

Problem

Agent record metadata was carrying app version fields and could append another metadata record during resume when the running app version differed from the persisted one. That made the agent event log mix wire metadata with runtime resume diagnostics.

What changed

  • Removed app_version and resumed from agent record metadata typing and new metadata writes.
  • Removed the resume-time metadata append that was based on app version differences.
  • Moved resume app version diagnostics to the session log.
  • Added a patch changeset for @moonshot-ai/agent-core and the CLI bundle.

Validation

  • pnpm --dir packages/agent-core exec vitest run test/agent/resume.test.ts test/harness/model-alias-session.test.ts test/agent/records/index.test.ts
  • pnpm --filter @moonshot-ai/agent-core typecheck
  • Read-only diff audit for context-specific internal identifiers passed with no findings.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@pkg-pr-new

pkg-pr-new Bot commented Jun 15, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@c57c7dc
npx https://pkg.pr.new/@moonshot-ai/kimi-code@c57c7dc

commit: c57c7dc

@kermanx kermanx merged commit e10b25f into main Jun 15, 2026
9 checks passed
@kermanx kermanx deleted the xtr/stop-resume-metadata branch June 15, 2026 13:04
@github-actions github-actions Bot mentioned this pull request Jun 15, 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.

1 participant