🤖 Mock AI error flows differ from real ones and add bug-bash noise
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- testing-qa
Research direction
Start by reading mockAiStreamPlayer.ts and comparing its error handling with StreamManager.persistStreamError; done means the mock preserves the partial reply and error details. Then inspect buildRateLimitErrorReply in mockAiRouter.ts and the mock retry behavior; done means the mock supplies a Retry-After value consistent with the retry and allows Retry-After handling to be exercised.
Written by the indexing model from the issue text.
Description
The mock AI (XUM_MOCK_AI=1) causes much of the noise in agent bug bashes (#5670):
-
mockAiStreamPlayer.tsdeletes the partial reply on error and leaves an empty assistant row.StreamManager.persistStreamErrorkeeps the partial with its error details. Matching it removes stray "[CONTINUE]" echoes and vanishing error banners. - The mock rate-limit error (
buildRateLimitErrorReplyinmockAiRouter.ts) sends no Retry-After, so its text says 60 seconds while the retry fires after 2 seconds, and the Retry-After handling cannot be exercised.
Priority P3. Size S each.
Found by the agent bug bashes in #5670 (pre-existing, outside that PR's changes).
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 139
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 943
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/xum
-
🤖 Skills popover descriptions are cut to one linePossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
🤖 Rows that scroll sideways hide their scrollbar, so cut-off items look missingPossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
🤖 Artifacts: return focus to the Fullscreen button after fullscreen closesPossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
umbraco/Umbraco-CMS-MCP-Dev#512 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
wimpysworld/sidra#290 ·
Maintainers usually reply within 1 day
-
defuFn invokes function values for inherited default propertiesPossibly taken @xiehuanyi claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
feature request good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TabularisDB/tabularis#853 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Under an hour Newbie friendliness 85/100
capricorn86/happy-dom#2474 ·
Maintainers usually reply within 2 days