Skip to content

Input source widget does not reflect the selected keyboard layout after switching #756

Closed as not planned

Description

@1tuz

What happens

The user reports that the Input source widget does not reflect the currently selected keyboard layout after the layout is switched in macOS. The reporter explicitly identified the affected indicator as the separate Input source / Keyboard layout widget, not the Menu bar items row.

This is a failure of an existing feature, not a request to add keyboard-layout support. The exact input-source pair and switching method remain unknown. No particular language, shortcut or input method is assumed.

Steps to reproduce

Reported user flow; not independently rerun during triage:

  1. Use StableBar with the separate Input source / Keyboard layout widget visible.
  2. Switch the selected keyboard layout in macOS.
  3. Look at the widget. It does not reflect the newly selected layout.

Expected

The widget reflects the selected keyboard input source after a switch. The provider guide says inputSource updates when the selected or enabled input sources change.

Environment

  • StableBar 0.17.0, stable, build 1187.
  • macOS 27.0 (26A428), arm64.
  • Display arrangement and window manager: not confirmed for this report.
  • Affected indicator: the reporter confirmed Input source / Keyboard layout. Exact input sources, switching method and effective widget configuration at the time of the failure: not supplied.

Evidence

The user's report is that the keyboard-layout widget does not display the current switched layout. No screenshot or recording was supplied for this failure. No keyboard source was switched and no app/build/test was run during triage.

The reporter confirmed that this was the separate Input source widget. A read-only snapshot of the saved root configuration did not contain a native inputSource entry, so it is not a captured configuration of the failing state. The snapshot does not disprove the reported widget or establish a different component; temporary changes and a different observation time were not inspected.

Diagnosis

The root cause is not confirmed. Inspect the selected-source data, monitor lifetime and rendered label before attributing the failure to notification delivery.

On pinned main 01bf12a1a67f6083342421efa090e48213fbe62e, InputSourceMonitor.read() and its TIS observers read the selected source and listen for selection/enabled-source changes. PushSource rereads on changes and compares the complete output. The default text abbreviates the first language rather than displaying the full layout name; two layouts with the same primary language can therefore show the same label. The user's source pair is unknown, so this is an alternative hypothesis, not a diagnosis.

The smallest next diagnostic is to inspect only this widget's effective provider, source ID/name/language/text and update/running state for the already reported failure. A stale ID/name would point toward update delivery or lifetime; a current ID with unchanged abbreviated text would point toward presentation. The user's observation does not need to be rerun merely to confirm that it happened. No fix is claimed here.

Related

  • #216 / #585 added native inputSource in v0.14.0. They do not track this current refresh/display failure. The feature PR did not exercise real source switching or live notification delivery.
  • #585's maintainer comment addresses empty-menu click precedence and a renamed-provider Settings explanation, not a proven cause here.

All-state issue/PR searches covered input source, InputSource, keyboard, layout, language, TIS, the selection notification, stale and update. No matching refresh-failure issue or later fix was found. The inspected input-source path has no post-v0.17.0 change on pinned main.

Triaged by OMP (closerouter/openai/gpt-6.1-sol).

Activity

  1. added
    needs-triage
    on Nov 16, 2026
  2. changed the title [-]Keyboard layout indicator does not reflect the selected layout after switching[/-] [+]Input source widget does not reflect the selected keyboard layout after switching[/+] on Nov 16, 2026
  3. Seb-GRAF commented on Nov 17, 2026

    @Seb-GRAF
    Collaborator

    which widget is it? the issue says your saved config has no inputSource widget, is it from a Store package?

    and which two layouts do you switch between, and how? French and Swiss French both show FR for example. does it catch up once you click the bar or open Settings?

  4. added
    bug
    P2
    needs-info
    and removed
    needs-triage
    on Nov 17, 2026
  5. 1tuz commented on Nov 17, 2026

    @1tuz
    Author

    It's the separate Input source / Keyboard layout widget on the bar — the one that shows the current input source and switches it on click, not the Menu bar items row and not the macOS input menu.

    I switch between Russian and English. Both are ordinary keyboard layouts, not input methods, and the labels differ (RU / EN), so it isn't the same-abbreviation case like French and Swiss French.

    A couple of things that would have helped me narrow it down, since the issue was filed from a static read of the code rather than a clean reproduction:

    • The widget isn't in my saved root configuration, which is why you found no inputSource entry there. I add and remove it through the UI, so it may have been added since, or live in another setup/profile.
    • Switching is through the macOS input menu / the keyboard shortcut, not through the widget itself.

    I don't currently have a reliable reproduction to attach: I haven't rerun the failure with a clean setup and recorded whether the widget catches up once the bar is clicked or Settings opens. If it's useful, I can do that and report back; otherwise feel free to close this until there's a reproducible case.

  6. 1tuz commented on Nov 17, 2026

    @1tuz
    Author

    Closing for now. RU and EN have different labels, so the same-abbreviation hypothesis doesn't explain this, and I haven't produced a reproduction I trust: no clean recording of the widget staying stale, and no check whether it catches up after a click or opening Settings. The original report came from reading the code, not from that failure.

    Will reopen if it happens again with the widget's effective config and whether it recovers on interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugneeds-info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions