GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Dashboard logs capped at 200 entries with no pagination — conversation filter and statistics incomplete · Issue #726 · lidge-jun/opencodex

[Bug]: Dashboard logs capped at 200 entries with no pagination — conversation filter and statistics incomplete #726

New issue
Copy link
New issue
Copy link
Closed
Closed
[Bug]: Dashboard logs capped at 200 entries with no pagination — conversation filter and statistics incomplete#726
Copy link
Labels
bugSomething isn't working

Description

@jhste102lab
jhste102lab
opened on Jul 30, 2026
Issue body actions

Client or integration

OpenCodex dashboard

Area

Dashboard

Summary

The in-memory request log ring buffer is hardcoded to MAX_LOG_SIZE = 200 (src/server/request-log.ts:129). Once 200 entries accumulate, the oldest entry is silently dropped. The Dashboard #logs tab fetches all logs with a single GET /api/logs call (no query parameters) and applies filters (conversation, surface) purely client-side. This means:

  1. The conversation log filter only searches among the last 200 entries — older conversations are invisible
  2. Statistics (usage, costs, tokens) derived from the dashboard only reflect the last 200 requests
  3. There is no server-side pagination or offset/limit mechanism on GET /api/logs

Reproduction

  1. Start ocx and send >200 requests through the proxy
  2. Open the dashboard #logs tab
  3. Observe that only the most recent 200 entries are visible
  4. Apply the conversation filter — it can only find conversations among those 200 entries
  5. Older request data is permanently lost from the dashboard view

Source references

  • MAX_LOG_SIZE = 200: src/server/request-log.ts:129
  • Ring buffer eviction: src/server/request-log.ts:222-224 (if (requestLog.length > MAX_LOG_SIZE) requestLog.shift())
  • Hydration cap from disk: src/server/request-log.ts:196-219 (reads max 200 from persisted usage log on startup)
  • tail parameter also capped at 200: src/server/request-log.ts:761
  • API endpoint has no pagination params: src/server/management/logs-usage-routes.ts:126-128 — returns all in-memory logs
  • Frontend fetches without query params, filters client-side: gui/dist/assets/index-cmds12BG.js

Expected behavior

  • Full request history should be accessible in the dashboard, either by increasing the in-memory buffer size significantly or adding server-side pagination
  • The conversation filter should be able to search across the full available history
  • GET /api/logs should support offset/limit (or cursor-based) pagination, and the frontend should lazy-load or paginate entries

Version

2.7.43

Operating system

Linux (WSL)

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. github-actions
    added
    bugSomething isn't working
    on Jul 30, 2026
  2. github-actions commented on Jul 30, 2026

    @github-actions
    github-actionsBot
    on Jul 30, 2026 – with GitHub Actions
    Contributor
    More actions

    Automated translation bookkeeping — detected language: unknown.

  3. Wibias commented on Jul 30, 2026

    @Wibias
    Wibias
    on Jul 30, 2026
    Contributor
    More actions

    [shipping-github] Research review

    Claim: In-memory request log ring buffer is capped at 200 with no /api/logs pagination, so filters/stats only see recent traffic.
    Checked against: dev@be177ea5

    Field Finding
    Still an issue on latest development? yes
    Exact issue MAX_LOG_SIZE = 200 in src/server/request-log.ts; GET /api/logs returns the in-memory set; tail also capped at 200
    Fixed on development? no
    Open PR covering this? none
    Duplicate of? none (related historical #500 was usage.jsonl parse cost, different)
    Security relevance none — n/a (raising retention has privacy/storage tradeoffs but not a vuln class)
    Priority middle — real dashboard limitation after moderate traffic; data still may exist in usage persistence depending on path
    Verdict Needs fix on development

    Evidence: src/server/request-log.ts:129 and eviction ~222–224; logs-usage-routes.ts GET /api/logs; tail clamp ~758–761.
    Gaps: Did not verify how much of dropped in-memory history remains queryable via usage APIs.

  4. Wibias commented on Jul 30, 2026

    @Wibias
    Wibias
    on Jul 30, 2026
    Contributor
    More actions

    [shipping-github] Opened PR #784 to address this.

  5. Wibias commented on Jul 31, 2026

    @Wibias
    Wibias
    on Jul 31, 2026
    Contributor
    More actions

    Thanks @jhste102lab — fixed by PR #784 (cd46a34): the in-memory request log buffer is now 2,000 entries with newest-first limit/offset pagination and a filtered otal, so dashboard conversation filters and stats are no longer truncated at 200.

  6. Wibias commented on Jul 31, 2026

    @Wibias
    Wibias
    on Jul 31, 2026
    Contributor
    More actions

    Closing as fixed by PR #784 (cd46a34): log buffer raised to 2,000 with limit/offset pagination.

  7. Wibias
    closed this as completedon Jul 31, 2026
  8. agentHits
    added 2 commits that reference this issue on Sep 17, 2026

    fix: address issue lidge-jun#726

    04c9b4d

    test(logs): expect /api/logs envelope in lidge-jun#725 timezone suite

    44d31e9
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.