Skip to content

4.6.3 - #1019

Merged
MakinoharaShoko merged 21 commits into
mainfrom
dev
Aug 1, 2026
Merged

4.6.3#1019
MakinoharaShoko merged 21 commits into
mainfrom
dev

Conversation

@MakinoharaShoko

Copy link
Copy Markdown
Member

No description provided.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying webgal-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1bf00ae
Status: ✅  Deploy successful!
Preview URL: https://22783be7.webgal-dev.pages.dev

View logs

@MakinoharaShoko
MakinoharaShoko merged commit 0586b2c into main Aug 1, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1bf00ae720

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return;
}
if (entry.writeReturnTo) {
setGameVar({ key: entry.writeReturnTo, value: returnValue });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Write returned values into the caller's local frame

When a nested caller already has a local variable named by -writeReturnTo, this writes the result into the stage scope even though popFrame() has just restored the caller's locals. Since getValueFromState() prioritizes locals over stage variables, the unchanged local value permanently shadows the returned result, so a typical nested call such as returning into one of its input/local variables appears to lose the result. Write to the restored caller frame, or provide an explicit destination scope.

Useful? React with 👍 / 👎.

});
WebGAL.sceneManager.sceneData.currentSentenceId = loadFile.sceneData.currentSentenceId;
WebGAL.sceneManager.sceneData.sceneStack = cloneDeep(loadFile.sceneData.sceneStack);
WebGAL.sceneManager.sceneData.currentLocals = cloneDeep(loadFile.sceneData.currentLocals ?? {}); // 旧存档没有此字段

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve current locals in flowchart snapshots

When a flowchart node is unlocked while executing a callScene frame, FlowchartManager.createSnapshot() does not include sceneData.currentLocals; loading that node therefore takes this fallback and replaces all scene arguments and setVar -local values with {}. Subsequent expressions in the restored called scene can produce different results, even though ordinary saves and backlog snapshots now preserve these locals. Include currentLocals in flowchart snapshots rather than treating every such snapshot as a legacy save.

Useful? React with 👍 / 👎.

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.

2 participants