Skip to content

feat: Add Next.js console with SSE chat and telemetry panel - #13

Open
ThomasHartDev wants to merge 3 commits into
mainfrom
thomas/feat/console
Open

feat: Add Next.js console with SSE chat and telemetry panel#13
ThomasHartDev wants to merge 3 commits into
mainfrom
thomas/feat/console

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

Adds apps/console (Next.js) with SSE chat against POST /agent/turn and a telemetry panel for GET /agent/telemetry.

Fail paths: HTTP 404 / conversation_not_found clears the dead conversation binding so retries after restart do not loop; restoreDraft only on pure HTTP fail or stream-closed-before-any-message (not after mid-stream turn_failed once a user message frame arrived). Abort/turn-id guard, concurrent submit lock, and telemetry loading covered in unit tests.

…fail

Reset and unmount abort the active fetch and bump a monotonic turn id so
stale SSE events cannot repopulate chat. Submit uses a sync in-flight guard
instead of render-time busy state. Failed turns restore the composed draft.
…ssage

HTTP 404 / conversation_not_found drops conversationId + messages so retries
after server restart do not loop. restoreDraft only on pure HTTP fail or
stream-closed-before-any-message; mid-stream turn_failed leaves the composer empty.
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