Skip to content

fix(strands): read loop state by flat key - #9284

Merged
davepagurek merged 2 commits into
processing:mainfrom
bhabishnu:fix/strands-loop-member-state
Oct 15, 2026
Merged

davepagurek merged 2 commits into
processing:mainfrom
bhabishnu:fix/strands-loop-member-state

Conversation

@bhabishnu

Copy link
Copy Markdown
Contributor

Resolves #9260

Changes:

  • Read loop-carried state using its flat key, e.g. vars['inputs.color'], instead of treating it as a nested property path.
  • Use the same flat-key access when writing loop state back from the block result.
  • Add a regression test for updating inputs.color.rgb inside a Strands loop.

Screenshots of the change:
N/A — this is a Strands transpiler fix covered by unit tests.

AI tools were used as an assistive tool while investigating and refining this change. I reviewed the final diff and verified the tests locally.

PR Checklist

@p5-bot

p5-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

Continuous Release

CDN link

Published Packages

Commit hash: 87d8210

Previous deployments

This is an automated message.

@davepagurek davepagurek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@davepagurek
davepagurek merged commit 1268f1f into processing:main Oct 15, 2026
4 checks passed
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.

[p5.js 2.0+ Bug Report]: Updating inputs.color.rgb inside a Strands for loop throws

2 participants