-
由 Will Chen 提交于
<!-- CURSOR_SUMMARY --> > [!NOTE] > Updates the Problems panel in real time when the local agent runs TypeScript checks and adds E2E coverage. > > - Adds `agent-tool:problems-update` IPC event, `AgentProblemsUpdatePayload`, and `IpcClient.onAgentProblemsUpdate` subscription > - Extends `AgentContext` with `appId` and sends problem reports from `run_type_checks` via `safeSend` after `generateProblemReport` > - Renderer listens for problems updates and writes to TanStack Query cache `['problems', appId]` to refresh the Problems panel > - Preload whitelists the new receive channel > - Adds local-agent E2E test, fixture, and snapshot validating Problems panel updates (`e2e-tests/local_agent_run_type_checks.spec.ts`) > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 9134d5f0053079e7294da8e6665f5684a047a15a. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Pushes Problems panel updates when the local agent runs type checks by emitting a problems report over IPC and updating the UI cache in real time. Adds an E2E test to verify errors appear and the Fix button is enabled. - **New Features** - run_type_checks now sends "agent-tool:problems-update" with { appId, problems } using safeSend; AgentContext includes appId. - IPC: added AgentProblemsUpdatePayload, whitelisted the channel in preload, and exposed onAgentProblemsUpdate in IpcClient. - Renderer listens for problems updates and writes to TanStack Query cache ["problems", appId]. - E2E: local-agent test creates TS errors, runs type checks, and snapshots Problems panel (verifies error rows and Fix button). <sup>Written for commit 9134d5f0053079e7294da8e6665f5684a047a15a. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| local_agent | ||
| visual_editing_handlers.ts |