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 — fix(mcpx): preserve in-progress elicitation answers across dashboard refresh (#3223) by dezren39 · Pull Request #3237 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 31, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #3223. Addresses the unaddressed Codex P2 from PR #2521 (discussion_r4420365329).

Problem

loadElicitations() in pkgs/mcpx/internal/dashboard/dashboard.html rebuilt the elicitation list via wholesale innerHTML on every refresh — the 15s interval and every SSE event — erasing answers an operator was mid-way through typing into a pending elicitation card, even when the pending set had not changed.

Fix (per triage task 4699 policy)

  • Unchanged set → skip re-render entirely. The pending set is signatured (JSON of ids + field schemas) as last rendered; a refresh returning the same signature returns early. Typed values, DOM nodes, focus, and selection are untouched.
  • Changed set → preserve by (request id, field name). Before the rebuild, in-progress field values and focus/selection are captured keyed by (request id, field name); after the rebuild they are restored for still-pending requests.
  • An error render resets the signature so the next successful poll always re-renders. answerElicit behavior is unchanged.

Verification

  • jsdom harness against the rendered page (stubbed /v1/elicit): type into a field, refresh with an unchanged payload → same DOM node, value, focus survive; refresh with a changed payload (second request added) → value preserved, focus + selection restored; empty-set and returning-set transitions render correctly. 11/11 PASS on this branch; the same harness fails 6 checks on the pre-fix page (fail-first).
  • New Go test TestDashboardHTMLElicitationRefreshPreservesInput pins the preservation mechanisms so a future edit cannot silently drop them. go test ./internal/dashboard/ passes (laptop); full CI on this PR is the remaining gate.

Queue task 4705 (lane B).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
fix(mcpx): preserve in-progress elicitation answers across dashboard …
deb4f6c
…refresh (#3223)

loadElicitations rebuilt the elicitation list via wholesale innerHTML on every 15s interval tick and SSE event, erasing answers an operator was mid-way through typing, even when the pending set had not changed.

Fix: signature the pending set (ids + field schemas) as last rendered and skip the re-render entirely when it is unchanged; when the set does change, capture in-progress field values and focus keyed by (request id, field name) before the rebuild and restore them after. Error renders reset the signature so the next successful poll always re-renders.

Verified with a jsdom harness against the rendered page: typed value, DOM node identity, focus, and selection survive an unchanged-set refresh, and the value is preserved across a changed-set refresh; the same harness fails 6 checks on the pre-fix page. New Go test pins the preservation mechanisms. Addresses the unaddressed Codex P2 on PR #2521.
@dezren39
dezren39 requested a review from a team as a code owner October 31, 2026 23:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T00:26:06.398742Z 2d8cecf Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bb89b9ff-c57a-4a65-b760-64f84e15399d
Commits

Reviewing files that changed from the base of the PR and between 8df5940 and 2d8cecf.

Files selected for processing: 2
  • pkgs/mcpx/internal/dashboard/dashboard.html
  • pkgs/mcpx/internal/dashboard/dashboard_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Oct 31, 2026
mcpx dashboard: 15s elicitation refresh rebuilds the list via wholesale innerHTML — in-progress operator answers are erased (PR #2521 Codex P2 unaddressed) #3223
Closed
@dezren39

dezren39 commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 1, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: deb4f6c12b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/dashboard/dashboard.html Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/mcpx/internal/dashboard/dashboard_test.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
fix(mcpx): stable elicitation refresh signature + behavioral coverage (…
2d8cecf
…#3223)

Codex review round on PR #3237, two findings dispositioned:

P2 (4433791275): elicitSignature serialized the whole /v1/elicit response, whose ttlRemainingMs is recomputed from the clock on every list (and lastTouched moves on reads) -- the signature changed on every refresh of an unchanged set, so the skip never fired and typed answers were still destroyed. The signature is now the stable rendered identity of the set: request ids + requestedSchema, in render order.

P1 (4433791277): the substring-pinning Go test could not fail when preservation broke. It is replaced by a behavioral test that runs the dashboard real script under node with a minimal DOM stub and drives loadElicitations through refresh transitions: volatile-only refresh skips the re-render (typed value + focus untouched), changed set re-renders with values/focus restored, and signature permutations (ttl/lastTouched drift stable; field added, id changed, member added all change it). Verified failing-first: 6 checks fail against the pre-fix signature, all pass after.
@dezren39

dezren39 commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

@codex review — new head 2d8cecf fixes both findings from the deb4f6c review (stable id+schema signature; behavioral node test replacing substring pins, verified failing-first). Threads replied and resolved.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 2d8cecf2da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit f045666 into main Nov 1, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/4705-3223-elicit-preserve branch November 1, 2026 00:30
@dezren39
dezren39 restored the queue/4705-3223-elicit-preserve branch November 1, 2026 09:16
@dezren39
dezren39 deleted the queue/4705-3223-elicit-preserve branch November 1, 2026 16:47
@dezren39 dezren39 mentioned this pull request Nov 3, 2026
Preserved branch: queue/4705-3223-elicit-preserve — decision needed (merge / cherry-pick / drop) #3558
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.