Repository navigation
feat: add Pi Agent usage tracking - #189
Conversation
fa9f0f1 to
89616bc
Compare
|
Thanks @vietlubu — the root handling here is careful work: a single I'd like to request two changes before this lands. 1.
So a turn with output 10,000 of which 8,000 is reasoning is recorded as 18,000. This is the Codex case, not the Gemini case — the Codex reader already notes that output_tokens includes reasoning, while the Gemini reader adds 2. Please split the Swift 6.3 work into its own PR. The Two smaller things on the Pi parser, neither blocking:
Separately, the read-failure path you added to |
6911415 to
b67c62b
Compare
|
@chattymin
I also rebased this branch onto the latest Thanks for catching the provider-specific reasoning semantics. |
b67c62b to
d771a4a
Compare
45a3498 to
d313c90
Compare
d313c90 to
dfeab7b
Compare
|
Thank you for your contribution! |
* feat: track Pi Agent usage * fix: correct Pi usage accounting * fix: register Pi custom scan roots * docs: record provider scan-root registry lesson
Brings in upstream work since the last sync: - Brazilian Portuguese (pt) UI language (chattymin#215) — added pt strings to fork-only labels - Pi Agent usage tracking (chattymin#189) - Keep Antigravity automatic poll out of the Keychain (chattymin#221) - Route Antigravity session notice through the localization table (chattymin#222) - Docs for representative pin / Antigravity limits / scan folders (chattymin#223) - Release bump to v2.5.2 Conflicts resolved in Localization (added pt to fork-only OpenCode Go / phone / widget labels and re-added `monthly`) and defect-log.md (kept both new entries). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Summary
Adds local Pi Agent usage tracking across all persisted sessions.
PI_CODING_AGENT_DIR/PI_CODING_AGENT_SESSION_DIRoverrides.history by entry ID.
totals.
on the main actor and makes the coverage gate select the LLVM toolchain that
matches the active Swift compiler.
Type of change
UI changes
No user-visible layout or visual changes. Pi appears as an additional provider
tab when it has usage, using the existing provider-tab UI.
Checklist
swift buildandswift testpass locally