Skip to content

feat(webui): onboarding driver chat shell (#1577) - #1587

Merged
nextlevelshit merged 1 commit into
mainfrom
1577-webui-onboarding-driver
Apr 29, 2026
Merged

feat(webui): onboarding driver chat shell (#1577)#1587
nextlevelshit merged 1 commit into
mainfrom
1577-webui-onboarding-driver

Conversation

@nextlevelshit

Copy link
Copy Markdown
Collaborator

Summary

  • New /onboard route renders a chat-style onboarding shell
  • SSE endpoint streams claude-code stdout as conversation messages
  • Form-answer POST routes user replies through the onboarder agent
  • Session state persists across reloads via PRE-2 Service.Resume
  • Integration + unit tests cover handlers, SSE, and form-answer flow

Related to #1577

Changes

  • internal/webui/handlers_onboard.go — onboarding handlers (index, SSE stream, answer POST)
  • internal/webui/templates/onboard/{index,_message,_prompt}.html — chat shell + message/prompt partials
  • internal/webui/routes.go, server.go, embed.go — route wiring + template embedding
  • internal/webui/static/style.css — minimal chat CSS
  • internal/webui/handlers_onboard_test.go + handlers_onboard_integration_test.go — coverage for handlers and SSE
  • docs/guides/web-dashboard.md — onboard route doc note
  • specs/1577-webui-onboarding-driver/{spec,plan,tasks}.md — planning artifacts

Test Plan

  • go test ./internal/webui/... — handler unit + integration tests
  • go test -race ./... — full suite
  • Manual: /onboard smoke against throwaway repo, browser SSE roundtrip

Add /onboard chat-style web UI driving internal/onboarding.Service via
SSE-streamed conversation and form-encoded answer POSTs. Covers Phase 1
of Epic #1565: GET /onboard creates a session and redirects to
/onboard/{id}; the page subscribes to /onboard/{id}/stream and renders
prompts as HTML forms; POST /onboard/{id}/answer unblocks the agent's
PromptString/PromptChoice. Last-Event-ID ring buffer replay survives
reload. In-memory session registry on Server (mirrors activeRuns).
@nextlevelshit
nextlevelshit merged commit 719503e into main Apr 29, 2026
15 checks passed
@nextlevelshit
nextlevelshit deleted the 1577-webui-onboarding-driver branch April 29, 2026 23:46
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