Skip to content

Application frozen after querying Grafana traces #3138

@coadler

Description

@coadler

I asked an agent to look at Tempo traces and the whole UI came to a crawl

2:50.903PM src/node/services/streamManager.ts:2314 Stream processing error: AI_APICallError: Invalid 'input[112].output': string too long. Expected a string with maximum length 10485760, but got a string with length 62430165 instead.
    at /nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/@ai-sdk/provider-utils/src/response-handler.ts:57:16
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at postToApi (/nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/@ai-sdk/provider-utils/src/post-to-api.ts:118:28)
    at OpenAIResponsesLanguageModel.doStream (/nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/@ai-sdk/openai/src/responses/openai-responses-language-model.ts:915:50)
    at fn (/nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/ai/src/generate-text/stream-text.ts:1443:27)
    at /nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/ai/src/telemetry/record-span.ts:32:24
    at _retryWithExponentialBackoff (/nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/ai/src/util/retry-with-exponential-backoff.ts:96:12)
    at streamStep (/nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/ai/src/generate-text/stream-text.ts:1395:17)
    at fn (/nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/ai/src/generate-text/stream-text.ts:1883:9)
    at /nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/node_modules/ai/src/telemetry/record-span.ts:32:24 {"workspaceId":"912f41fa8a","workspaceName":"tracing-6da3"}
2:50.854PM src/desktop/main.ts:1064 [renderer] [WorkspaceStore] onChat(912f41fa8a) stalled (no events for 10000ms); retrying... {"source":"file:///nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/dist/main-D74N6ozw.js:2"}
2:50.500PM src/desktop/main.ts:1064 [renderer] [WorkspaceStore] onChat(912f41fa8a) stalled (no events for 10001ms); retrying... {"source":"file:///nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/dist/main-D74N6ozw.js:2"}
2:51.171PM src/node/services/historyService.ts:395 chat.jsonl exceeds 5MB — full read may be slow, consider compaction {"workspaceId":"912f41fa8a","sizeBytes":63105200}
2:51.412PM src/desktop/main.ts:1064 [renderer] [WorkspaceStore] onChat(912f41fa8a) stalled (no events for 10000ms); retrying... {"source":"file:///nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/dist/main-D74N6ozw.js:2"}
2:51.413PM src/node/services/historyService.ts:395 chat.jsonl exceeds 5MB — full read may be slow, consider compaction {"workspaceId":"912f41fa8a","sizeBytes":63105200}
2:51.699PM src/desktop/main.ts:1064 [renderer] [WorkspaceStore] onChat(912f41fa8a) stalled (no events for 10000ms); retrying... {"source":"file:///nix/store/856nqg3g2zscfrmiy3n4zh9yyfz33pql-mux-933141380a497ed352d0d132a12fe07a3d8bc52a/lib/mux/dist/main-D74N6ozw.js:2"}
$ du -sh *
61M	chat.jsonl
28K	init-status.json
4.0K	partial.json
4.0K	session-usage.json
4.0K	todos.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions