Skip to content

[Feature]: dashboard management gaps — delete rollback entries, custom usage ranges, rename account selectors #3379

Description

@lidge-jun

Area

Dashboard

What are you trying to accomplish?

Manage the things the dashboard already displays. Three reports describe the same gap from different pages: the data is visible, the control is missing. Each is closed individually and absorbed here:

What prevents this today?

Rollback history is read-only. src/server/management/integration-routes.ts exposes the journal as GET only, and gui/src/pages/integrations/RollbackHistory.tsx renders restore and expired states with no delete affordance. src/integrations/journal.ts deliberately preserves journal rows while pruning snapshot files, so entries accumulate and the operator cannot clear them.

Usage ranges are fixed. gui/src/pages/Usage.tsx offers 7d / 30d / all only. Estimated cost totals exist (src/usage/summary.ts), but they cannot be scoped to an arbitrary interval, and there is no hourly bucketing.

Account selector names are display-only. gui/src/components/CodexAccountPickerSetting.tsx toggles codexAccountPickerEnabled and nothing else; src/server/management/config-routes.ts returns picker visibility and exposes no rename API. Operators running several accounts cannot label them meaningfully.

What should OpenCodex do?

  1. Allow deleting a rollback journal entry from the integrations UI, with the same safety the restore path already has, and state clearly whether the underlying snapshot is already gone.
  2. Accept a user-selected start/end range on the Usage page with hourly granularity, and scope the existing cost estimate to that range.
  3. Provide a rename API for Codex account selector labels and an editor in the dashboard, keeping the label local and never sending it upstream.

Example usage or interface

Usage  [ 2026-08-01 00:00 ] → [ 2026-08-03 12:00 ]   granularity: hour
  estimated cost over range: $12.40
# rename is local metadata only
PATCH /api/config/codex/accounts/<id>  { "displayName": "team-billing" }

Alternatives or workarounds

Operators edit configuration files by hand or read raw request history, which is what a dashboard exists to prevent.

Additional context

Absorbs #2399, #2748, #3017. Credit for the original analysis belongs to @ncepuee, @areskts, and @hayabusasxs.

Checks

  • I searched existing issues and documentation.
  • This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
  • I removed secrets and personal data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestguiDashboard, tray, settings UI

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions