Repository navigation
fix(onboarding): kernel-driven starter-task completion + inspector/board consistency (#916) - #920
Merged
Merged
Conversation
…act + reconcile inspector/board task views (#916) Three claim-vs-state drifts from the 2026-08-12 smoke, one PR because they share a surface (the first-workspace task board): 1. TASK-001 "Connect your first agent" now completes itself the moment the BYO runtime token authenticates for the FIRST time — the same #909 verified-listening moment the connect page's checkmark keys on. New starterTaskService targets the seeded card by sourceRef (onboarding:connect-agent), flips only pending/claimed, stamps a system update line, and emits task_updated. Hooked at every token-use stamp: both agentRuntimeAuth paths AND the WS transport (which stamps the same lastUsedAt and would otherwise swallow the first-use signal for WS-first agents). Fire-and-forget — a board write can never fail an auth request. 2. The v2 inspector now subscribes to task_updated (already emitted by every task write; previously consumed only by the v1 board) — a task created mid-conversation no longer sits beside a stale "Tasks 3" count until reload. 3. Run state shows the board's four buckets in the board's order — pending is no longer folded into "In Progress" (the "3 in progress vs 3 Pending" split reading), and the recent-task pill says "Pending" instead of "Active" for pending tasks. en + zh keys added. Tests: 5 starterTaskService contract cases + 3 middleware first-use cases (fires with podIds/label, once-only, path-2 parity) green locally alongside the existing suite. Frontend typecheck clean; jest runs in CI (its tier). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #916.
Three claim-vs-state drifts on the first-workspace board, caught in the 2026-08-12 smoke:
sourceRef: onboarding:connect-agent, onlypending/claimedflip, system update line,task_updatedemitted. Hooked at bothagentRuntimeAuthpaths and the WS transport (it stamps the samelastUsedAt, so skipping it would swallow the first-use signal for WS-first agents permanently). Fire-and-forget; a board write can never fail auth.task_updated(emitted by every task write; previously only the v1 board listened) — no more "Tasks 3" beside a chat message announcing task Add frontend utility tests #4.Tests: 5 service-contract cases + 3 middleware first-use cases green locally; typecheck clean; frontend jest runs in CI (its tier on this machine).
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8