Skip to content

fix(agent): submit a spec that came from the editor's store - #2784

Draft
camielvs wants to merge 1 commit into
09-21-chore_increase_max_turns_in_remote_agentfrom
09-22-fix_submit_a_spec_that_came_from_the_editor_store
Draft

camielvs wants to merge 1 commit into
09-21-chore_increase_max_turns_in_remote_agentfrom
09-22-fix_submit_a_spec_that_came_from_the_editor_store

Conversation

@camielvs

@camielvs camielvs commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Description

Related Issue and Pull requests

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

Additional Comments

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 09-22-fix_submit_a_spec_that_came_from_the_editor_store/26a89c3

camielvs commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camielvs
camielvs changed the base branch from 09-21-fix_workarea_tabs_scroll_sideways to 09-21-chore_increase_max_turns_in_remote_agent September 23, 2026 22:02
@camielvs
camielvs force-pushed the 09-21-chore_increase_max_turns_in_remote_agent branch from 8eabbb9 to 29a4a88 Compare September 23, 2026 23:00
@camielvs
camielvs force-pushed the 09-22-fix_submit_a_spec_that_came_from_the_editor_store branch 2 times, most recently from 8631814 to e84be82 Compare September 23, 2026 23:36
@camielvs
camielvs force-pushed the 09-21-chore_increase_max_turns_in_remote_agent branch from 29a4a88 to d99ef65 Compare September 23, 2026 23:36
@camielvs
camielvs force-pushed the 09-22-fix_submit_a_spec_that_came_from_the_editor_store branch from e84be82 to 3c9f8ff Compare September 23, 2026 23:56
@camielvs
camielvs force-pushed the 09-21-chore_increase_max_turns_in_remote_agent branch from d99ef65 to 795225d Compare September 23, 2026 23:56
An agent submitting a run crashed before the run was created:
`structuredClone` refuses `#<Object>`, and the object it refuses is a live
observable. `serializeComponentSpec` passes each task's `componentRef`
through by reference when there is no subgraph, so a spec that came off the
editor's store is a plain object with observables still inside it — fine to
read, not fine to clone.

The copy is taken with `deepClone` instead, which walks the value rather than
handing it to a structured-clone the proxies cannot survive.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@camielvs
camielvs force-pushed the 09-21-chore_increase_max_turns_in_remote_agent branch from 795225d to c5fa1f5 Compare September 24, 2026 00:14
@camielvs
camielvs force-pushed the 09-22-fix_submit_a_spec_that_came_from_the_editor_store branch from 3c9f8ff to 26a89c3 Compare September 24, 2026 00:14

This branch has not been deployed

No deployments
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