Skip to content

Highlight Routines in the strip when Routines is open - #2062

Merged
davidmckayv merged 1 commit into
mainfrom
fix/routines-strip-highlight
Nov 23, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/routines-strip-highlight

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What a person saw

On Routines, the strip would not light Routines. Clicking the Routines icon changed nothing: the page was Routines, but Bots stayed lit on the strip with the Bots panel open beside the page, and there was no way to get Routines selected again short of going to another page first.

Cause

Two things in the strip's click handling, both on a page whose section has no panel.

  1. Bots opened the Conversations panel instead. On Routines the panel is folded away. Clicking Bots asked for the Bots section and then opened the panel. Opening a panel while the open section has none asks the frame for a section that has one, which is Conversations, and that request came last, so it won. A second click on Bots then did show Bots.
  2. Routines' own icon did nothing once Bots was open. A section opened from the strip holds until the page changes. Routines' icon is a link to /routines, and on /routines that link goes nowhere: the router does not commit a navigation to the location it is already on. With no new page, nothing gave the strip back to Routines, so Bots stayed lit and its panel stayed open.

The other page-only sections (Agents, Memory, Skills, Connections) use the same strip item and had the same problem.

Fix

In app/src/components/app-sidebar/section-strip.tsx:

  • A panel section's icon (Conversations, Bots) now opens the panel first and asks for its section last, so the section clicked is the one that opens.
  • A page section's icon, clicked while its own page is already open, opens its section directly, which is what arriving on the page would have done. Off its page, the link navigates as before and the page takes the strip back, as it already did.

This follows the existing design: the panel is Bots' on the Bots section and Conversations' everywhere else, and a section with no panel folds the panel away. No styling, layout or copy changes.

Tests

  • app/tests/section-strip-routines.test.tsx (new, real browser, Chromium and WebKit, added to the app-browser-webkit job): drives the real strip, panels and shell with the app's stylesheet.
    • Opened directly on /routines: Routines is lit and current, the panel is folded away.
    • On Routines: Bots lights Bots with its panel, Routines lights Routines and folds the panel, and again, all without leaving the page.
    • On Routines: Conversations, then Bots, then Routines (the path in the report) lights Routines.
    • From home: Bots, then Routines opens Routines with Routines lit.
  • app/tests/section-strip.test.tsx: two matching cases in the unit suite.

Red on main, green with the fix:

main:  (fail) on Routines, Bots lights Bots with its panel, Routines lights Routines again, and back
         botsLit: expected "true", got "false"; panel: expected "Bots", got "Conversations"
       (fail) on Routines, Conversations, Bots and then Routines lights Routines again
         after Routines: botsLit "true", panel "Bots", routinesLit false, sidebar "expanded"
       3 pass, 2 fail

fix:   5 pass, 0 fail (Chromium and WebKit)

Unit suite section-strip.test.tsx: 2 fail on main, 11 pass with the fix. The app's whole unit suite passes (one Settings test timed out once under load and passes on its own).

Screenshots of the strip and panel on Routines, before and after, in light and dark, in Chromium and WebKit, were checked by eye: before, Bots lit with its panel beside Routines; after, Routines lit and the panel folded away, as on a direct load. Nothing else in the strip or panel moved.

On Routines, the strip could not light Routines. Bots on the strip opened
Conversations' panel instead, because opening the panel on a page whose
section has none asks for Conversations, and that request came after Bots.
Once Bots was open, Routines' own icon did nothing: its link pointed at the
page already open, so no navigation happened and nothing gave the strip back
to Routines.

A panel section's icon now opens the panel first and asks for its section
last. A page section's icon, clicked on its own page, opens its section as
arriving on the page would have. The other page-only sections get the same
fix through the same strip item.

Tested in a real browser, Chromium and WebKit, and in the unit suite.
@davidmckayv
davidmckayv force-pushed the fix/routines-strip-highlight branch from d0e545a to 88e7074 Compare November 23, 2026 16:58
@davidmckayv
davidmckayv merged commit ed6d86d into main Nov 23, 2026
34 checks passed
@davidmckayv
davidmckayv deleted the fix/routines-strip-highlight branch November 23, 2026 17:05
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