feat(nodepod): add browser workspace demo#973
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f54cf7a694
ℹ️ 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".
| const selectedNode = | ||
| findFileNode(nodes, selectedFilePathRef.current) ?? | ||
| findFileNode(nodes, firstFilePath(nodes)); |
There was a problem hiding this comment.
Refresh the editor when the selected file disappears
When refreshFileSystem({ preserveEditor: true }) runs after a terminal command or watcher event deletes/renames the selected file, this fallback selects a different file but the preserved-editor path skips openFile, so selectedFilePathRef and editorValue still point to the removed file while the UI title changes. A later Save or restart can silently recreate/overwrite the old path instead of editing the displayed file; handle the “selected file missing” case by clearing the editor or opening the fallback even when preserving normal editor contents.
Useful? React with 👍 / 👎.
Summary
project/nodepod-demodistandnode_modulesValidation
npx prettier --write project/nodepod-demo/index.html project/nodepod-demo/package.json project/nodepod-demo/src/main.jsx project/nodepod-demo/src/styles.css project/nodepod-demo/vite.config.jsnpm cinpm exec vite -- buildbash ~/.cursor/skills/git-commit/scripts/run-audit.shnpm audit --audit-level=highNote:
npm audit --audit-level=highexits successfully; npm still reports low/moderate advisories in the Monaco/DOMPurify dependency chain.npm audit fix --forcewould apply a breaking Monaco version change, so it was not run.