Skip to content

fix(ai-cleanup): make opencodeProvider path succeed#190

Open
EyJunge1 wants to merge 1 commit into
tickernelz:mainfrom
EyJunge1:fix/ai-cleanup-opencode-provider
Open

fix(ai-cleanup): make opencodeProvider path succeed#190
EyJunge1 wants to merge 1 commit into
tickernelz:mainfrom
EyJunge1:fix/ai-cleanup-opencode-provider

Conversation

@EyJunge1

@EyJunge1 EyJunge1 commented Jul 25, 2026

Copy link
Copy Markdown

Summary

  • Fixes AI Cleanup failing with opencodeProvider by stopping reply suppression, reading JSON from text parts, raising cleanup timeouts to 5m, and surfacing OpenCode errors instead of masking them as a missing provider.
  • Closes AI Cleanup never succeeds with opencodeProvider #177

Test plan

  • bun test tests/ai-cleanup.test.ts (8/8 pass)
  • bun run typecheck + bun run build + bun run format:check
  • Full suite after build: 238 pass / 0 fail
  • Live: Triggered POST /api/user-profile/ai-cleanup against local OpenCode (opencodeProvider=opencode, opencodeModel=deepseek-v4-flash-free) — success: true in ~14s; log shows session.create + session.prompt done via OpenCode; result merged 5 duplicate groups (kept:1, merged:5, removed:0)
  • Live: Web UI stayed healthy (/api/health 200 before and after cleanup); /ai-cleanup path uses 300000ms timeout

Stop suppressing assistant replies, read JSON from text parts, raise
cleanup timeouts to 5m, and surface OpenCode errors instead of masking
them as a missing provider.

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI Cleanup never succeeds with opencodeProvider

1 participant