add github copilot, copilot cli support, fix opencode - #23
Open
mervynzhang wants to merge 3 commits into
Open
Conversation
Index Copilot's copilot-agent event logs from both hosts that write them: the CLI ($COPILOT_HOME/session-state/<uuid>/events.jsonl) and the VS Code agent panel (workspaceStorage/<hash>/GitHub.copilot-chat/ transcripts/<uuid>.jsonl). VS Code transcripts omit session.start context, so their project resolves from the per-workspace workspace.json folder URI. Usage comes from session.shutdown.modelMetrics, whose inputTokens are cache-inclusive; cached portions are subtracted to keep SessionView's disjoint input/cache-read/cache-write invariant. Sessions without a shutdown record carry no usage rather than partial fabricated totals. transformedContent and reasoningText never reach the transcript; unknown event types skip silently since the format is explicitly unstable, while malformed lines count as parse warnings. Resume: copilot --resume <id>.
Newer OpenCode builds repurposed the workspace table (provider/binding bookkeeping) and dropped its branch column, so the batched branch lookup failed with "no such column: w.branch" and the whole provider's scan was skipped. Gate the query on the column via pragma_table_info — the same pattern already used for session.version — so either schema scans cleanly; branch is optional metadata.
libsqlite3-sys 0.38 (pinned transitively via rusqlite 0.40 with the bundled feature) uses cfg_select! in its build script, which only stabilized in Rust 1.95 — so the tree never actually built on the declared 1.91, failing with a cryptic E0658 inside a dependency's build script instead of cargo's normal "requires rustc X" message. Declare the real floor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
add github copilot, copilot cli support, fix opencode
Test plan
cd src-tauri && cargo testpassesnpm testpassescd src-tauri && cargo fmt --checkpassescd src-tauri && cargo clippy --all-targets --all-features -- -D warningspassesnpm run checkpasses