Skip to content

fix(vis): align with current agent-core-v2 - #3540

Merged
RealKai42 merged 4 commits into
mainfrom
fix/align-vis-core-v2
Sep 4, 2026
Merged

fix(vis): align with current agent-core-v2#3540
RealKai42 merged 4 commits into
mainfrom
fix/align-vis-core-v2

Conversation

@RealKai42

@RealKai42 RealKai42 commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

None. This alignment was requested directly after auditing the session visualizer against the current agent-core-v2 implementation.

Problem

The visualizer had recently migrated to agent-core-v2, but its manually maintained wire inventory, context replay, storage readers, and timeline projection had already diverged from current engine behavior. This left new file-history records without typed renderers and could reconstruct pending tools, undo boundaries, turns, timestamps, usage, and legacy persisted tasks incorrectly.

What changed

  • Cover every current durable wire record, including file-history checkpoints and tracked files, with a manifest parity test that catches future drift.
  • Reuse the engine loop, undo, and compaction helpers for context reconstruction while preserving the full-history debugging view.
  • Match current wire recovery and persistence behavior for headerless journals, legacy plan revisions, workspace paths, task fallbacks, and empty task output files.
  • Validate imported session metadata, task records, file-history payloads, and compaction payloads before exposing them to the UI.
  • Surface current turn outcomes, stop reasons, reasoning sizes, compaction wire ranges, agent profiles, task stop codes, timestamps, usage, and export metadata.
  • Include both visualizer projects in the root Vitest configuration.

Validation

  • pnpm exec vitest run --project vis-server --project vis-web (24 files, 221 tests)
  • pnpm --filter @moonshot-ai/vis-server typecheck
  • pnpm --filter @moonshot-ai/vis-web typecheck
  • pnpm --filter @moonshot-ai/vis build
  • pnpm run lint (0 errors)
  • git diff --check

Checklist

  • I have read the CONTRIBUTING document.
  • Related issue is not applicable; this was a direct repository maintenance request.
  • I have added tests that prove the changes work.
  • Ran gen-changesets; vis packages do not receive changesets.
  • No documentation update is needed because this does not change the CLI or a public workflow.

@changeset-bot

changeset-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9ae4b21

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 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-09-04T14:20:07.856949Z 760119f 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.

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

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

Comment thread apps/vis/server/src/lib/session-store.ts Outdated
Comment thread apps/vis/server/src/lib/session-store.ts Outdated
Comment thread apps/vis/web/src/lib/analysis.ts Outdated
@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026

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

commit: 760119f

@RealKai42

Copy link
Copy Markdown
Collaborator 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: 09ae416f12

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

Comment thread apps/vis/web/src/components/wire/renderers.tsx Outdated
Comment thread apps/vis/web/src/components/wire/renderers.tsx Outdated
@RealKai42

Copy link
Copy Markdown
Collaborator 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: 9ae4b21cb9

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

Comment thread apps/vis/web/src/components/wire/renderers.tsx Outdated
Comment thread apps/vis/web/src/components/tasks/TasksTab.tsx
@RealKai42

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 760119fdbe

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

@RealKai42
RealKai42 merged commit f9ca333 into main Sep 4, 2026
16 checks passed
@RealKai42
RealKai42 deleted the fix/align-vis-core-v2 branch September 4, 2026 15:36
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