Skip to content

fix(web): keep live markers off old history segments - #1593

Merged
frahlg merged 1 commit into
masterfrom
codex/history-live-gap-tip-20261012
Oct 12, 2026
Merged

frahlg merged 1 commit into
masterfrom
codex/history-live-gap-tip-20261012

Conversation

@frahlg

@frahlg frahlg commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

After a gap in Live history, old segment endpoints receive the same pulse as the current reading. This can make a measurement before an outage look fresh.

Cache only the endpoint at the latest sample. A missing latest sample leaves all old points still, and the first known point after a gap can pulse. The history lines and missing-value gaps stay intact.

Two regressions execute the actual chart drawing block. They fail before the change and pass after it; all 715 web tests pass. Full make verify also passes. Human UI inspection remains deferred to the owner's beta review. This addresses the final review finding on #1592.

Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

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-10-12T18:26:34.673535Z 0e4525a PR opened
ℹ️ 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.

@frahlg
frahlg merged commit fd9540c into master Oct 12, 2026
12 checks passed

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

Copy link
Copy Markdown

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: 0e4525aa1f

ℹ️ 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".

Comment thread web/app.js
Comment on lines +1354 to 1355
if (sr.width >= 2 && pts.length && sr.data.length === chartHistory.timestamps.length) {
liveTips.push({ x: pts[pts.length - 1].x, y: pts[pts.length - 1].y, color: sr.color });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Validate the live marker change in a browser

This changes visible canvas behavior, but the added VM tests only inspect the cached coordinates and never render the marker; the commit also explicitly defers human UI inspection. A human needs to inspect the gap and latest-null states in a browser before accepting this change, since clipping, layering, and marker appearance are not covered by these assertions.

AGENTS.md reference: AGENTS.md:L129-L131

Useful? React with 👍 / 👎.

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