Skip to content

fix(chat): run block execution state loader#5759

Merged
icecrasher321 merged 1 commit into
stagingfrom
fix/run-block
Jul 18, 2026
Merged

fix(chat): run block execution state loader#5759
icecrasher321 merged 1 commit into
stagingfrom
fix/run-block

Conversation

@icecrasher321

Copy link
Copy Markdown
Collaborator

Summary

Fix cross-turn chat run-from-block by preserving pointer-backed execution state during latest snapshot lookup.

Type of Change

  • Bug fix

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Jul 18, 2026 8:15pm

Request Review

@cursor

cursor Bot commented Jul 18, 2026

Copy link
Copy Markdown

PR Summary

Cursor Bugbot is generating a summary for commit 8128b9b. Configure here.

@greptile-apps

greptile-apps Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes loading pointer-backed execution state for cross-turn chat runs. The main changes are:

  • Omits nullish inline state before snapshot materialization.
  • Preserves trace-store references during latest-state lookup.
  • Tests fallback from an unavailable latest snapshot to an older valid snapshot.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
apps/sim/lib/workflows/executor/execution-state.ts Conditionally omits nullish snapshot fields so pointer-backed execution state can be materialized without being overwritten.
apps/sim/lib/workflows/executor/execution-state.test.ts Updates coverage for pointer-backed lookup and fallback to an older materializable execution.

Reviews (1): Last reviewed commit: "fix(chat): run block execution state loa..." | Re-trigger Greptile

@icecrasher321
icecrasher321 merged commit 9560ffd into staging Jul 18, 2026
20 checks passed
@icecrasher321
icecrasher321 deleted the fix/run-block branch July 18, 2026 20:19
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