• Will Chen's avatar
    Update problems report when run type check tools is run (#2212) · 96101a74
    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. -->
    96101a74
名称
最后提交
最后更新
.claude 正在载入提交数据...
.cursor/rules 正在载入提交数据...
.devcontainer 正在载入提交数据...
.github 正在载入提交数据...
.husky 正在载入提交数据...
assets 正在载入提交数据...
docs 正在载入提交数据...
drizzle 正在载入提交数据...
e2e-tests 正在载入提交数据...
packages/@dyad-sh 正在载入提交数据...
scaffold 正在载入提交数据...
scripts 正在载入提交数据...
shared 正在载入提交数据...
src 正在载入提交数据...
testing 正在载入提交数据...
tools 正在载入提交数据...
worker 正在载入提交数据...
workers/tsc 正在载入提交数据...
.cursorignore 正在载入提交数据...
.env.example 正在载入提交数据...
.eslintrc.json 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.oxlintrc.json 正在载入提交数据...
.prettierignore 正在载入提交数据...
.prettierrc 正在载入提交数据...
AGENTS.md 正在载入提交数据...
CLA.md 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
SECURITY.md 正在载入提交数据...
biome.json 正在载入提交数据...
components.json 正在载入提交数据...
drizzle.config.ts 正在载入提交数据...
forge.config.ts 正在载入提交数据...
forge.env.d.ts 正在载入提交数据...
index.html 正在载入提交数据...
lint-staged.config.js 正在载入提交数据...
merge.config.ts 正在载入提交数据...
package-lock.json 正在载入提交数据...
package.json 正在载入提交数据...
playwright.config.ts 正在载入提交数据...
tsconfig.app.json 正在载入提交数据...
tsconfig.json 正在载入提交数据...
tsconfig.node.json 正在载入提交数据...
vite.main.config.mts 正在载入提交数据...
vite.preload.config.mts 正在载入提交数据...
vite.renderer.config.mts 正在载入提交数据...
vite.worker.config.mts 正在载入提交数据...
vitest.config.ts 正在载入提交数据...