Add OpenCode provider support for discover#417
Conversation
|
Hi! Thanks for the contribution! Since March 6, all PRs should target the Could you update the base branch? Click Edit at the top right of this PR and change it from Thanks! |
|
Thanks for this @vadika! The A few issues to address before we can merge: Must fix:
Nice to fix:
|
|
Thanks for the detailed review — great catches. I retargeted the PR base branch to I’ve now addressed all points you listed:
Also added tests for provider parsing and LIKE escaping behavior. I ran fmt + clippy + full test suite locally; |
63bd989 to
b6de8d7
Compare
Introduce typed discover provider selection, improve OpenCode session querying/reuse, and carry forward upstream conflict resolutions for discover-related modules.
b6de8d7 to
85a21b1
Compare
|
Hey We are cleaning up the codebase and improving the project structure for better onboarding. As part of this effort, PR #826 reorganizes No logic changes — only file moves and import path updates. What you need to doRebase your branch on git fetch origin && git rebase origin/developGit detects renames automatically. If you get import conflicts, update the paths: use crate::git; // now: use crate::cmds::git::git;
use crate::tracking; // now: use crate::core::tracking;
use crate::config; // now: use crate::core::config;
use crate::init; // now: use crate::hooks::init;
use crate::gain; // now: use crate::analytics::gain;Need help rebasing? Tag @aeppling |
Summary
rtk discoverthat reads command history from~/.local/share/opencode/opencode.db(withOPENCODE_DB_PATHoverride)--provider auto|claude|opencodetortk discoverand makeautoprefer OpenCode when available/home/user/.cargo/bin/rtk ...) before classificationValidation
cargo checkcargo test test_classify_ -- --nocapturecargo run --quiet -- discover --provider opencode --all --since 30 --limit 5 --format textNotes