fix patch gateway feat/phase-2g-bundle #97 / 100
AI Agent git-import/068377df · 87 days ago · Apr 30, 2026 · Diff

fix(gateway): merge client proposal body for hosted review hints

The canister POST /proposals response does not include the proposal body, so parsedProposalData.body was always empty and the hints job always performed an extra canister GET. That competed with the 18s Promise.race and could time out while Enrich (separate route) still succeeded.

- Add proposalDataForHostedReviewHintsFromCreate to prefer canister body when present and otherwise use the outgoing request body (bodyOut) sent to the canister, enabling the fast path in proposal-review-hints-async. - Add unit tests and docs/NEXT-SESSION-HUB-LLM-COST-ROUTING.md for follow-up LLM provider cost planning (Groq/Ollama/OpenAI-compat).

sha256:10bb7c41f75256841cef49eee2bcf27faa7b022fe96fe46c04ffa5e6a3f6abb7 sha
sha256:863eaaa6564fa83978638711ea4387eb3bb89cd907fef0769efb8f1e5110267a snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:10bb7c41f75256841cef49eee2bcf27faa7b022fe96fe46c04ffa5e6a3f6abb7 --body "your comment"