Repository navigation
fix(sse): register quota batch after imports resolve - #15548
diegosouzapw merged 119 commits into
Conversation
A module-load call to registerQuotaTrackersBatch() invokes registerQuotaFetcher while webpack is still binding that async export. Cold chat-route init then throws "(0 , e.Zd) is not a function" and caches an empty HTTP 500 for every later chat/messages/responses request.
|
CI for this fork PR finished as Semgrep cloud scan already passed. Once the workflows are approved I will watch the gates and fix anything this change breaks. |
|
@diegosouzapw could you review this when you have a moment? This is a production outage, not a cosmetic fix: on I am a first-time contributor, so the required workflows (CI, Quality Gates, API Route Typecheck, semgrep) are stuck at Could you approve those workflow runs and, if the fix looks right, queue the PR? Happy to adjust the patch if you want a different init boundary. |
…purify 3.4.16 and patched npm-bundled copies in the image (diegosouzapw#15325) - next/eslint-config-next 16.3.5 -> 16.3.6 (critical RCE in next/og ImageResponse). - override axios ^1.20.0 so ibm-cloud-sdk-core's exact 1.18.0 pin cannot keep the vulnerable copy. - @grpc/grpc-js 1.14.5, dompurify 3.4.16 via lockfile. - Dockerfile npm-internals overlay: undici 6.29.0, brace-expansion 5.0.12, ip-address 10.7.3. node-forge has no patched release yet (dev-only, via promptfoo -> jks-js).
…gosouzapw#15003) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…zapw#15225) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
… Rule diegosouzapw#16 (diegosouzapw#15389) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
… text (diegosouzapw#15399) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…alog (diegosouzapw#15396) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…iegosouzapw#15395) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…osouzapw#15378) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
diegosouzapw#15432) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…get (diegosouzapw#15433) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…#15434) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…pw#15463) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…pass (diegosouzapw#15560) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…ead of failing silently (diegosouzapw#15362) Validated in a combined 14-PR board on the current release tip (112313a): 111 focused tests, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…zapw#15224) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…umn name" (diegosouzapw#15236) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…guard (diegosouzapw#15239) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…rt failures (diegosouzapw#15248) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
… in pool visibility (diegosouzapw#15374) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…ouzapw#15375) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…osouzapw#15398) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…diegosouzapw#15402) Validated in a combined board on the current release tip: focused node:test + vitest suites, typecheck:core, open-sse typecheck, gate-manifest, mutation-test-coverage, file-size, changelog-integrity, complexity, env-doc-sync, test-discovery, vitest-exclusions, error-helper, cli-i18n and the i18n new-keys/ui-coverage gates green. Thank you for the contribution.
…zapw#15443) Brought the tip into the branch (the stacked parent commit had landed as a squash) and revalidated: focused tests, typecheck:core, open-sse typecheck, file-size, changelog-integrity, complexity and mutation-test-coverage green. Thank you for the contribution.
…journal (diegosouzapw#15390) Brought the tip into the branch (the stacked parent commit had landed as a squash) and revalidated: focused tests, typecheck:core, open-sse typecheck, file-size, changelog-integrity, complexity and mutation-test-coverage green. Thank you for the contribution.
…e catalogs (diegosouzapw#15599) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…pw#15346) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…thrown save (diegosouzapw#15600) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
diegosouzapw#15583) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…pw#15593) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…ig saves (diegosouzapw#15592) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…d fails (diegosouzapw#15587) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…ouzapw#15612) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…egosouzapw#15604) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…ale saves (diegosouzapw#15571) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…#15589) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…ine tests (diegosouzapw#15610) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…le mirrors (diegosouzapw#15618) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…ed semantics (diegosouzapw#15617) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
…ckbox (diegosouzapw#15605) Onda 3 (woodsonl) validada num único board em `.claude/worktrees/batch-w3` sobre `origin/release/v3.8.52` (`4f4c983347b9`), 27 PRs, superfícies protegidas 0. Evidência: `typecheck:core` limpo. i18n drift limpo no board. changelog-integrity ok. file-size ok (170 congelados). complexity 2975/3218 e cognitive-complexity 1357/1437 dentro do baseline. node:test focado: 1868 passaram, 0 falharam. Vitest da UI: 150 passaram em 12 arquivos. Os 38 do RTK caem no `useCallback` nulo de `node_modules/node_modules/react` via zustand, o mesmo React duplicado desta worktree. Onde dois PRs mexiam no mesmo save, o board ficou com os dois comportamentos: escrita parcial de engine por id e a fila/resync do PR que entrou depois. O hash de `.i18n-state.json` do guia de quality-gates entra no follow-up, fora do squash.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @woodsonl.
Follow-up da onda 3. Os guias de compressão, environment e quality-gates já entraram nos squashes do @woodsonl. Este commit só regrava os hashes de `.i18n-state.json` para bater com o que está no disco. Nenhum doc foi reescrito aqui. file-size no pai `5a82a1c0` ficou verde (170 congelados, 46 testes). Não há bump de teto. O drift de i18n passou depois do `--adopt`.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff).
…gosouzapw#15435) Onda 4. O restante do lote do @maxmad64bis já estava na release. Este squash é o índice cobrindo da matriz de saúde (migration 200) mais a reserva dos buracos 197, 198 e 199. 197 e 198 continuam com o diegosouzapw#15564. 199 continua com o diegosouzapw#15314. Os dois ainda estão abertos. Sem a reserva, o gate de numeração quebrava no tip no momento em que o 200 entrasse. Evidência neste board: `check-migration-numbering` OK (194 migrations, 6 gaps). Testes focados: 26 passaram, 0 falharam (`check-migration-numbering`, `migration-200-provider-health-matrix-cover`, `call-logs-family-agg`). O índice é `CREATE INDEX IF NOT EXISTS` e a segunda corrida é no-op.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @maxmad64bis.
…egosouzapw#15370) Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
…egosouzapw#15371) Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
…uzapw#15372) Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
…iegosouzapw#15373) Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
…15577) Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
Onda 7. Bumps do Dependabot que não encostam no lock da raiz: workflows (Trunk uploader 2.1.5, CodeQL 4.38.2) e locks de folha (plugin v2 e electron 44.5.1, depois o http-cache-semantics do electron). O board em `.claude/worktrees/batch-w7` sobre `f715c86f` mergeou os sete sem conflito e sem `package-lock.json` da raiz. diegosouzapw#15577 entra antes de diegosouzapw#15649.⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff). Obrigado, @dependabot.
…pw#15686) O diegosouzapw#15434 já publicava o status do stream de eventos da Trae quando `!res.ok || !res.body`. Um 200 sem body é falha local do stream, e mesmo assim o 200 entrava como status de upstream. Agora o `upstreamStatus` só é gravado quando `!res.ok`. O throw continua nos dois casos. O caminho de criar sessão já estava certo e não mudou. O teste "event stream 2xx without a body" falhou no tip (`200 !== undefined`) e passou depois do ajuste. Os outros quatro do arquivo continuam verdes (429, 503, refresh).⚠️ base-red inherited: diegosouzapw#15306 (timeouts de suíte no tip, não neste diff).
The release removed the side-effect import. The named import and the call after the other imports stay, so the webpack async binding does not run at module load.
Summary
POST /v1/chat/completions,/v1/messages, and/v1/responsesreturn an empty HTTP 500 after process start. The console error isTypeError: (0 , e.Zd) is not a function.e.ZdisregisterQuotaFetcherinquotaPreflight.ts, a realMap.setwrapper, not a missing export. Webpack emits that module as an async module.quotaTrackersBatch.tscalledregisterQuotaTrackersBatch()at module scope, so the first callee (registerAgentrouterQuotaFetcher) touched the live binding before it was a function. Next caches the rejected chat-route module, so every later chat request 500s. Restarting the same image does not help.GET /v1/modelsdoes not load this barrel and stays up.registerQuotaTrackersBatch()from thechat.tsmodule body (same point as the sibling registrars that already survive init) and frominstrumentation-node.tsafterawait import.chat.tsis frozen at 2586 lines, so the new call replaces a blank line.Related Issues
quotaPreflight; that one deadlocks the esbuild MCP bundle, this one rejects the Next chat chunk)Validation
npm run lint— not run in this sparse checkout (nonode_modules). CI lint is the gate.release/v3.8.52@23a11484); focused check rerun afterwardTests Added Or Updated
tests/unit/quota-trackers-batch-init.test.ts(added)Local run, from a sparse checkout of this branch:
The existing
tests/unit/instrumentation-import-graph-12074.test.tscase "startup still registers bespoke, batch, and generic quota fetchers" still callsregisterQuotaFetchers()and assertsgetQuotaFetcher("agentrouter")is a function. That path now goes through the explicit call.Coverage Notes
open-sse/services/quotaTrackersBatch.ts,src/sse/handlers/chat.ts, andsrc/instrumentation-node.tsare covered by the new source-contract test: no module-scope call, chat body calls the registrar beforeregisterGenericQuotaFetchers(), instrumentation calls it only after the dynamic import resolves.Reviewer Notes
diegosouzapw/omniroute:latestsha256:8bd462c9f60d8eda79329cfbb6ea7ea723505fe7721beb944f3d43835409e218(package 3.8.51, image created 2026-09-24). The side effect is unchanged onrelease/v3.8.52.function k(){(0,e.Zd)("agentrouter",j),(0,f.registerMonitorFetcher)("agentrouter",j)}while chunk80010.jsmodule502008is still inside webpack's async dependency resolve. No source maps in the image.chat.tsline count stays 2586, equal toconfig/quality/file-size-baseline.json.registerGenericQuotaFetchers(), so bespoke batch fetchers still win over the generic registrar. Both call sites are idempotent (Map.set).