Skip to content

Show execution costs with user and organisation thresholds - #648

Merged
witbrock merged 1 commit into
mainfrom
codex/von-4e1c71a3cef85eef
Sep 12, 2026
Merged

witbrock merged 1 commit into
mainfrom
codex/von-4e1c71a3cef85eef

Conversation

@witbrock

Copy link
Copy Markdown
Member

Execution summaries now show estimated USD cost immediately after duration, only above the viewer's display threshold. Above the alert threshold the estimate is red and says “High cost”. A reserved responsive slot prevents movement as cost finalises; missing or partially priced totals stay blank.

The represented #V#hasExecutionCostDisplayPreferences singleton stores an atomic USD decimal-string pair on a user or organisation. Precedence is user, current server-bound organisation, then server defaults of US$0.01/US$0.10. The predicate uses the existing virtual-concept registry; an actor-bound API persists personal overrides through the canonical governed write service. New telemetry preserves exact Decimal strings, with numeric-only historical compatibility.

Validation: 53 targeted Python tests, 301 frontend tests, static JS lint and diff checks pass. Twelve local browser fixture checks exercise the actual template/CSS/chat renderer at 1440px and 390px, including strict boundaries, accessible red alerts, unchanged slot/header geometry, duration and last activity. Fixture receipts/screenshots are retained in the worker worktree at .run/execution-cost-evidence/; this is not authenticated live acceptance.

Merge decision: ready; the observed mobile layout shift is repaired and no material regression remains on the affected path. No live preference records were changed and no deployment is requested. Older numeric-only history cannot recover precision absent from its stored telemetry. Configuration contract and operation are documented in docs/engineering/execution_cost_display.md.

Von task: #V#task_agent_b7e1e1753af2cee586427d6e9388ac4a.

@witbrock
witbrock merged commit e596e18 into main Sep 12, 2026
2 checks passed
@witbrock
witbrock deleted the codex/von-4e1c71a3cef85eef branch September 12, 2026 19:57
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.

1 participant