integrate context:updated event and display decisions/notes in FocusedAgentPanel#539
Merged
JeremyDev87 merged 1 commit intomasterfrom Feb 18, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…s in FocusedAgentPanel (#515) - Add context:updated event type and ContextUpdatedEvent payload to TuiEventMap - Extend extractFromUpdateContext() to emit context:updated when decisions/notes present - Add contextDecisions, contextNotes, contextMode, contextStatus to DashboardState - Add CONTEXT_UPDATED reducer action in use-dashboard-state - Create ContextSection pure rendering functions (context-section.pure.ts) - Create ContextSection Ink component (ContextSection.tsx) - Integrate ContextSection into FocusedAgentPanel below Tools/IO section - Add tests for event extraction, reducer, and pure rendering functions - Fix flaky integration test: add extra tick for coverage-instrumented CI environment
c7dfc01 to
36664b9
Compare
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.
Summary
Closes #515
Integrates the
update_contextMCP tool response into the TUI dashboard by emitting acontext:updatedevent and displaying accumulateddecisions[]andnotes[]in the FocusedAgentPanel.Changes
Event Layer
context:updatedtoTUI_EVENTSconstant andTuiEventMapinterfaceContextUpdatedEventpayload type (decisions,notes,mode,status)extractFromUpdateContext()to emitcontext:updatedalongsidetask:syncedwhen decisions or notes are presentState Layer
contextDecisions,contextNotes,contextMode,contextStatusfields toDashboardStateCONTEXT_UPDATEDreducer case indashboardReducercontext:updatedEventBus event inuse-dashboard-statehookUI Layer
context-section.pure.tswithformatContextDecisions,formatContextNotes,formatContextSectionpure functions (numbered list / bullet prefix, max 5 items with overflow indicator)ContextSection.tsxInk component rendering decisions (cyan) and notes (dimColor)ContextSectionintoFocusedAgentPanelbelow the Tools/IO sectioncontextDecisionsandcontextNotesprops down fromdashboard-app.tsxTest Plan
context-section.pure.spec.ts— pure rendering functions (empty, single, overflow, combined)response-event-extractor.spec.ts—context:updatedemitted with decisions/notes; not emitted when both empty;task:syncedstill emitted alongsideuse-dashboard-state.spec.ts—CONTEXT_UPDATEDreducer updates state correctlyFocusedAgentPanel.spec.tsx— renders ContextSection with props; shows "No context" fallbackdashboard-types.spec.ts—createInitialDashboardStateincludes new fieldstypes.spec.ts—CONTEXT_UPDATEDconstant and event map coverage