feat(tui): render server-initiated wake turns from bg-job completion - #66
Merged
Conversation
odek >= v1.40 wakes idle sessions when a background job finishes: the session frame arrives stamped system_initiated and the model's report streams like any turn. Cards previously opened only on the local send path, so every streamed event of a wake turn dropped silently. - client: decode system_initiated on the session frame - tui: openWakeTurn opens the card from the wire (busy, relayout, status 'waking for bg job'); suppressed during operator turns - transcript: systemWake cards render 'odek - wake', never as a user message; plain mode prints a [wake] line - bg_wake frames surface a transient note; bg_job frames kick an immediate jobs snapshot (kickJobsFetch), watcher stays fallback - docs: README + AGENTS updated for push frames and wake rendering
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.
What
Consumes odek ≥ v1.40's wake-on-complete surface so a background job finishing while the session is idle produces a visible, properly-rendered turn instead of silently dropped output.
Why
odek v1.40 wakes idle sessions itself: the
sessionframe arrives stampedsystem_initiatedand the model's report streams like any turn. bodek's cards previously opened only on the local send path, so every streamed event of a wake turn was dropped — the LLM engaged, the operator saw nothing.Changes
system_initiatedon the session frame (omitempty — version-safe both directions)openWakeTurnopens the streaming card from the wire (busy, relayout, statuswaking for bg job); suppressed while an operator turn is livesystemWakemarker — head renders⬡ odek · wake; never rendered as a user message;--plainprints a[wake]linekickJobsFetch(); the REST watcher stays as fallback, generation guards untouchedVerification
go vetclean ·go test -race -count=1 ./...7/7 packages green