Skip to content

fix: resolve matchList per item in list-mode memory components#5357

Open
andrecalil wants to merge 5 commits into
mainfrom
fix/memory-list-match-variables
Open

fix: resolve matchList per item in list-mode memory components#5357
andrecalil wants to merge 5 commits into
mainfrom
fix/memory-list-match-variables

Conversation

@andrecalil

Copy link
Copy Markdown
Collaborator

In list-mode upsertMemory and updateMemory, the matchList was built once from raw pairs and reused across iterations, so expressions like item.uuid never resolved to the current element. As a result every iteration tried to match (or upsert against) the same global row.

Resolve matchList per item with the iteration variable in scope (same rules as valueList), so each element matches its own row. To keep a global match across iterations, users can still write a {{ ... }} template (resolved before iteration starts). Docs and configuration descriptions are updated accordingly, and per-item match values are exposed in the emitted event under data.items[*].matches.

Also clarify the dashboard markdown docs that mapped lists now render as JSON unless joined, since the renderer change lives in main.

Resolves #5356

In list-mode upsertMemory and updateMemory, the matchList was built once
from raw pairs and reused across iterations, so expressions like
item.uuid never resolved to the current element. As a result every
iteration tried to match (or upsert against) the same global row.

Resolve matchList per item with the iteration variable in scope (same
rules as valueList), so each element matches its own row. To keep a
global match across iterations, users can still write a {{ ... }}
template (resolved before iteration starts). Docs and configuration
descriptions are updated accordingly, and per-item match values are
exposed in the emitted event under data.items[*].matches.

Also clarify the dashboard markdown docs that mapped lists now render
as JSON unless joined, since the renderer change lives in main.

Signed-off-by: André Calil <andre@calil.com.br>
Co-authored-by: Cursor <cursoragent@cursor.com>
@superplanehq-integration

Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

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.

Fix Memory Upsert Match in List Mode

1 participant