@@ -261,23 +261,25 @@ func (o *Output) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
261261 o .blockIDs [msg .Clock .Number ] = msg .Clock .Id
262262
263263 // Handle the partial block output
264- if msg .Output != nil && ! msg .Output .IsEmpty () {
265- modName := msg .Output .Name ()
266- blockCtx := common.BlockContext {
267- Module : modName ,
268- BlockNum : blockNum ,
269- }
270-
271- forceRedraw := false
272- if _ , found := o .payloads [blockCtx ]; ! found {
273- if o .moduleSelector != nil && modName != "" && o .moduleSelector .AddModule (modName ) {
274- cmds = append (cmds , func () tea.Msg { return common .UpdateSeenModulesMsg (o .moduleSelector .Modules ) })
264+ if msg .Output != nil {
265+ anyOutput := msg .Output .ToAny ()
266+ if ! anyOutput .IsEmpty () {
267+ modName := anyOutput .Name ()
268+ blockCtx := common.BlockContext {
269+ Module : modName ,
270+ BlockNum : blockNum ,
275271 }
276- if o .active .Module == "" {
277- o .active .Module = modName
278- o .active .BlockNum = blockNum
279- }
280- if o .active .Module == modName && len (o .blocksPerModule [modName ]) == 0 {
272+
273+ forceRedraw := false
274+ if _ , found := o .payloads [blockCtx ]; ! found {
275+ if o .moduleSelector != nil && modName != "" && o .moduleSelector .AddModule (modName ) {
276+ cmds = append (cmds , func () tea.Msg { return common .UpdateSeenModulesMsg (o .moduleSelector .Modules ) })
277+ }
278+ if o .active .Module == "" {
279+ o .active .Module = modName
280+ o .active .BlockNum = blockNum
281+ }
282+ if o .active .Module == modName && len (o .blocksPerModule [modName ]) == 0 {
281283 forceRedraw = true
282284 o .active .BlockNum = blockNum
283285 }
@@ -293,11 +295,12 @@ func (o *Output) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
293295 })
294296 }
295297 }
298+ }
299+ // Store partial block data with special handling
300+ o .payloads [blockCtx ] = anyOutput
301+ o .partialBlockIndices [blockCtx ] = msg .PartialIndex
302+ o .setOutputViewContent (forceRedraw )
296303 }
297- // Store partial block data with special handling
298- o .payloads [blockCtx ] = msg .Output
299- o .partialBlockIndices [blockCtx ] = msg .PartialIndex
300- o .setOutputViewContent (forceRedraw )
301304 }
302305
303306 case search.ApplySearchQueryMsg :
0 commit comments