Skip to content

mcpx dashboard: 15s elicitation refresh rebuilds the list via wholesale innerHTML — in-progress operator answers are erased (PR #2521 Codex P2 unaddressed) #3223

Closed

Description

@dezren39

Finding (from PR review, unaddressed)

On PR #2521, Codex raised a P2 that was never fixed and never replied to:

Preserve in-progress elicitation answers during refresh — While an operator is filling out a pending elicitation, the 15-second interval calls loadElicitations, which unconditionally replaces every card and input through this innerHTML assignment, even when the pending requests have not changed. This erases answers the operator is mid-way through typing.
— chatgpt-codex-connector[bot], 2026-10-30T04:11:07Z

Evidence:

Still live on current main (verified 2026-10-31)

pkgs/mcpx/internal/dashboard/dashboard.html on current main still rebuilds the elicitation list wholesale on every refresh:

const pending = await fetchJSON('/v1/elicit');
const items = Array.isArray(pending) ? pending : [];
...
list.innerHTML = items.map(req => { ... }).join('');

There is no change detection or input-state preservation: any in-progress answer in a pending elicitation form is wiped when the 15-second refresh fires — exactly what the reviewer flagged.

Acceptance criteria

  • A refresh whose pending set is unchanged does not destroy in-progress form input (skip the rebuild, diff by request id, or preserve/restore field values and focus).
  • Changed/expired elicitations still update promptly.
  • The behaviour is pinned by a test or a documented manual check in the dashboard's test story.
  • Or: resolve by a documented decision on this issue explaining why wholesale rebuild is acceptable.

Activity

  1. added
    task/triage
    status/needs-triage
    priority/normal
    queue/queued
    app/mcpx
    source/pr-comment-review
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  3. added
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    status/needs-triage
    queue/queued
    on Oct 31, 2026
  4. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — CONFIRMED

    • Agent: queue worker (repo-worker-code), Lane F shift
    • Session / ID: queue task 4699 (triage)
    • Verdict: CONFIRMED on current main, blob 232395ca (pkgs/mcpx/internal/dashboard/dashboard.html, 933 lines).
    • Evidence: loadElicitations() (line 856) unconditionally rebuilds the list with list.innerHTML = items.map(...) at line 867 — no change detection, no capture/restore of input values or focus. It runs on the 15s interval (line 925) and on every SSE event (line 928), so answers can be erased far more often than every 15 seconds. The PR feat(mcpx): daemon.ui gating and daemon.uiDir override for /dashboard (#1882) #2521 Codex thread (discussion_r4420365329) is still unresolved with zero replies (verified via GraphQL).
    • Decision / fix policy: (1) skip the re-render when the pending request set (ids + field schemas) is unchanged; (2) when the set changes, preserve typed values keyed by (request id, field name) across the re-render and restore them. Reply on the PR feat(mcpx): daemon.ui gating and daemon.uiDir override for /dashboard (#1882) #2521 thread with the fix PR link when it opens.
    • Follow-up: fix enqueued as queue task 4705 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:3223).
  5. removed
    status/in-progress
    queue/claimed
    on Oct 31, 2026
  6. 13 remaining items

  7. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  8. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — Codex usage limit (task 4705, resume check)

  9. added
    queue/claimed
    status/in-progress
    and removed
    status/parked
    queue/parked
    on Nov 1, 2026
  10. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (resume)

  11. chatgpt-codex-connector commented on Nov 1, 2026

    @chatgpt-codex-connector
  12. removed
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 1, 2026
  13. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

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

Metadata

Metadata

Assignees

Labels

app/mcpxpriority/normalsource/pr-comment-reviewtask/triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions