Skip to content

Prevent undefined reference error on ErrorString - #8739

Open
florann wants to merge 2 commits into
omacom:quattrofrom
florann:fix/undefined-reference-shell-fail-load-custom-bar
Open

Prevent undefined reference error on ErrorString#8739
florann wants to merge 2 commits into
omacom:quattrofrom
florann:fix/undefined-reference-shell-fail-load-custom-bar

Conversation

@florann

@florann florann commented Aug 28, 2026

Copy link
Copy Markdown

Loading a cloned/custom bar (kind: "bar") that fails required-property initialization throws a ReferenceError on the undefined errorString property, which prevents the automatic fallback to omarchy.bar from running. The result is no top bar at all.

This fix guards the errorString access with typeof, so a failed load falls back to the default bar gracefully instead of crashing.

Fixes the required-property failure in pluginBarLoader for third-party bar plugins.

Relates to #7418

Copilot AI balanced review requested due to automatic review settings August 28, 2026 09:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prevents custom bar load failures from blocking fallback to the default bar.

Changes:

  • Guards access to the optional errorString.
  • Preserves fallback through failedBarId.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread shell/shell.qml
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.

2 participants