Handle unavailable TypeScript checks#3845
Conversation
|
@BugBot run |
π Dyadbot Code Review SummaryVerdict: β
YES - Ready to merge This PR adds structured error handling for TypeScript unavailability across the full stack: worker thread, main process, IPC handlers, agent tool, and renderer UI. The implementation is well-architected with clean separation between worker-side Issues Summary
π’ Low Priority Notes (4 items)
Generated by Dyadbot persona-based code review |
|
@BugBot run |
There was a problem hiding this comment.
π‘ Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f028ddfcc
βΉοΈ About Codex in GitHub
Codex has been enabled to automatically 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 π.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
π Dyadbot Code Review SummaryVerdict: β
YES - Ready to merge This PR cleanly handles the case where TypeScript type checking is unavailable. The structured error propagation from worker -> main process -> UI is well-layered, IPC boundary concerns are correctly handled (the Issues Summary
π’ Low Priority Notes (2 items)
Generated by Dyadbot persona-based code review |
|
@BugBot run |
π€ Claude Code Review SummaryPR Confidence: 5/5All trusted review threads were addressed with code changes, resolved explicitly, and the targeted tests plus fmt/lint/type-check passed. Unresolved ThreadsNo unresolved threads Resolved Threads
Product Principle SuggestionsNo suggestions π€ Generated by Claude Code |
- Gate type-check dependency guidance on add_dependency availability - Guard problem precondition guidance before appPath is assigned - Document preserved DyadError classification
d016dc3 to
e616880
Compare
|
@BugBot run |
There was a problem hiding this comment.
π‘ Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e61688041f
βΉοΈ About Codex in GitHub
Codex has been enabled to automatically 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 π.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| streamMessage({ | ||
| prompt: | ||
| "Add TypeScript to this project: install `typescript` as a dev dependency and create a lenient tsconfig (`allowJs: true`, `strict: false`) so existing JavaScript keeps working.", | ||
| chatId, | ||
| }); |
There was a problem hiding this comment.
Route Add TypeScript clicks to a writable mode
When this command is rendered after run_type_checks runs in Ask/read-only or Plan mode, clicking it sends a normal message without requestedChatMode, so useStreamChat reuses the current chat's read-only/plan mode and handleLocalAgentStream still filters out state-changing tools like add_dependency/file writes. In those modes the one-click βAdd TypeScriptβ remediation cannot actually install TypeScript or create tsconfig, even though the guidance says the user can accept it with one click; force a writable mode or avoid showing this action when the current chat cannot modify the app.
Useful? React with πΒ / π.
|
@BugBot run |
π Dyadbot Code Review SummaryVerdict: β
YES - Ready to merge This PR gracefully handles cases where TypeScript type checking is unavailable in user projects (no TypeScript installed, missing tsconfig, incomplete node_modules). The implementation is well-layered across the worker, main process, and renderer, with proper error classification, context-aware guidance messages, and comprehensive test coverage. What was reviewed:
β No issues found by persona-based review. π’ Low Priority Notes (3 items)
Generated by Dyadbot persona-based code review |
π Playwright Test Resultsβ Some tests failed
Summary: 767 passed, 4 failed, 5 flaky, 238 skipped Failed Testsπ macOS
πͺ Windows
π Re-run Failing Tests (macOS)Copy and paste to re-run all failing spec files locally: npm run e2e \
e2e-tests/package_manager.spec.ts
|
Summary