Frozen state: same step-input mutability on the QuickJS VM as on Node

Aperta
#5,321 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Read state-refs.ts and trace reviveTracked plus the QuickJS VM path that revives frozen state. First check how QuickJS reads state records, since the issue says it cannot yet read StateRefV1; compare that behavior with the Node VM case. Done means choosing and implementing consistent input mutability across both VMs, or documenting the difference until QuickJS supports state records.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow-up from review of #5215.

Workflow rebuilds frozen state passed between steps and deep-freezes it (state-refs.ts, reviveTracked). On the Node VM an inline step gets the workflow's own frozen object, so a step that changes its input in place throws a TypeError. Under WORKFLOW_VM=quickjs, values are stored in full and steps get a mutable copy, so the same code works.

Picking one rule would make this predictable across VMs. Options:

  • also deep-freeze frozen state revived in the QuickJS VM, once that VM can read state records;
  • or document the difference until then.

Related: QuickJS can't read StateRefV1 yet, so steps of a QuickJS run write no state records (#5215). Adding reading support there would remove both differences.

🤖 Generated with Claude Code

Lingua principale
TypeScript
Stelle
2.5k
Fork
401
Merge medio
1g 21h
PR unite (30g)
201

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vercel/workflow

Tutte le issue di vercel/workflow

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.