fix(console): match by execution & block id when updating console-entry (#685)

* fix(console): match by execution & block id when updating console-entry

* remove fallback
This commit is contained in:
Waleed Latif
2025-07-14 17:03:39 -07:00
committed by GitHub
parent d13a06e2c5
commit b1b8654236

View File

@@ -183,10 +183,8 @@ export const useConsoleStore = create<ConsoleStore>()(
) => {
set((state) => {
const updatedEntries = state.entries.map((entry) => {
// Match by executionId if provided, otherwise fall back to blockId for backward compatibility
const isMatch = executionId
? entry.executionId === executionId
: entry.blockId === blockId
// Only update if both blockId and executionId match
const isMatch = entry.blockId === blockId && entry.executionId === executionId
if (isMatch) {
if (typeof update === 'string') {
// Simple content update for backward compatibility