• Will Chen's avatar
    Consolidate build-time logs into server logs (#2214) · c26f65a1
    Will Chen 提交于
    The two categories cannot be categorized properly.
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Consolidates log taxonomy by removing `build-time` and treating all
    build/stdout/stderr and restart messages as `server` for consistent
    System Messages display and filtering.
    > 
    > - Reclassifies app stdout/stderr and restart notices to `type:
    "server"` in `useRunApp`
    > - Removes `build-time` from UI/IPC types and filters (`Console.tsx`,
    `ConsoleEntry.tsx`, `ConsoleFilters.tsx`, `ipc_types.ts`)
    > - Updates `read_logs` tool schema/enums and description to exclude
    `build-time` and clarify `server` includes dev server and build output
    > - Adds E2E test `e2e-tests/logs_server.spec.ts` and updates snapshots
    to validate `server` badge and filtering
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    4e28efdd2ff60aaf168084f447f65cda191b4367. 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
    Consolidated all build-time logs into the "server" type so they appear
    consistently in System Messages and filters. This removes the
    "build-time" category and simplifies log filtering.
    
    - **Refactors**
    - Removed the "build-time" log type from UI components, IPC types, and
    read_logs schema.
    - Emitted stdout/stderr and restart messages as type "server" in
    useRunApp.
    - Clarified read_logs description: server includes dev server logs and
    build output.
    - Added a Playwright E2E test to verify server log classification and
    filtering in System Messages.
    
    <sup>Written for commit 4e28efdd2ff60aaf168084f447f65cda191b4367.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    c26f65a1
logs_server.spec.ts 2.1 KB