You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e7c94f6
Browse filesBrowse the repository at this point in the historyBrowse files
Add a display.currency config option that converts usage costs to the
user's preferred currency at presentation boundaries (ACP usage_update,
TUI, and app). The provider/model currency remains the source currency:
when no display currency is configured, costs are shown unchanged in
the source currency, and amounts are never relabeled when conversion is
impossible (unknown rate).
- Add Currency core module: approximate USD-based display rate table,
convert() with user rate overrides, and locale-aware format()
- Add display.currency and display.rates to the config schema
- Convert in both ACP usage_update paths (Effect layer and ACP client)
- Replace hardcoded USD formatters in TUI (sidebar, prompt, subagent
footer) and app (context usage, context tab) with the shared utility
- Regenerate SDK types and document the new options
Relates to anomalyco#32485. Supersedes the approach explored in anomalyco#32487 and
builds on provider-currency propagation from anomalyco#39425.
"Custom exchange rates as units per 1 USD. Take precedence over the built-in approximate display rates. An invalid rate disables conversion for that currency.",
137
+
}),
138
+
}),
139
+
).annotate({
140
+
description:
141
+
"Presentation options. The display currency only affects how usage costs are shown; amounts are never relabeled without conversion.",
0 commit comments