Skip to content

fix: synchronize Flue sessions and query state - #132

Merged
pandemicsyn merged 2 commits into
mainfrom
agent/frontend-state-api-hardening
Jul 17, 2026
Merged

pandemicsyn merged 2 commits into
mainfrom
agent/frontend-state-api-hardening

Conversation

@pandemicsyn

Copy link
Copy Markdown
Owner

Summary

  • let the installed Flue React hook own atomic session history and remount session-local operation state by agent/session identity
  • replace the self-referencing Ref action with an explicit non-active session target selector
  • publish typed chat-session-command-change events and converge session/query caches after SSE reconnects
  • forward TanStack Query AbortSignals through dashboard read APIs, including diff and PR review reads
  • invalidate durable review state after submit and withdraw stale Autopilot confirmations
  • retain the original audit findings and mark recommended steps 4–5 completed

Verification

  • npm run check — 81 test files, 516 tests
  • npm run format:check
  • npm run build:web
  • focused service/SSE/query/session/autopilot regressions
  • Impeccable static design audit

Stack

This is PR 2 of 2 and targets PR 1: #131.

No measurement-gated Pierre/rendering/bundle optimization from the performance section is included; that gate remains open for discussion.

@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: 522af0739f

ℹ️ 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 on lines +176 to 178
const closeCommandEvents = openChatSessionCommandEventStream((event) => {
if (event.sessionId === session.id) refreshCommandEvents();
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge De-duplicate command events received through SSE

When the current tab submits a slash command, the server now publishes the created command event before the POST response returns (src/modules/sessions/service.ts), so this new SSE invalidation can refetch the just-created row before the submit path runs appendCommandEvent(createdEvent). Because the local append still blindly appends by id, the same command can render twice with duplicate React keys until a later refetch, especially for commands that spend time running; de-dupe the local command event state or ignore the current mutation's echoed SSE update.

Useful? React with 👍 / 👎.

@pandemicsyn
pandemicsyn force-pushed the agent/frontend-state-api-hardening branch from 522af07 to 0308cb0 Compare July 16, 2026 22:06
pandemicsyn added a commit that referenced this pull request Jul 17, 2026
## Summary
- add named landmarks, tabs, filters, disclosures, feedback roles, and
combobox semantics
- repair light/dark semantic contrast and 44px coarse-pointer targets
- preserve chat and PR-review task completion in compact layouts
- retain the original static-review findings and mark recommended steps
1–3 completed

## Verification
- `npm run check`
- `npm run format:check`
- `npm run build:web`
- Impeccable static design audit
- live wide/compact dashboard QA, keyboard tab and command-list
navigation, and compact PR submission controls

## Stack
This is PR 1 of 2. Stacked PR 2 is #132.
Base automatically changed from agent/frontend-ui-hardening to main July 17, 2026 02:13
@pandemicsyn
pandemicsyn force-pushed the agent/frontend-state-api-hardening branch from 0308cb0 to 4640cf0 Compare July 17, 2026 02:13
@pandemicsyn
pandemicsyn merged commit f55c598 into main Jul 17, 2026
5 of 10 checks passed
@pandemicsyn
pandemicsyn deleted the agent/frontend-state-api-hardening branch July 17, 2026 02:16
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