Skip to content

fix(linux): log the AppImage launcher and tray host result on every path - #7141

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
autofix/issue-7138
Closed

github-actions[bot] wants to merge 1 commit into
mainfrom
autofix/issue-7138

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Before this change, the Fedora run that #7138 asks for couldn't show which path GAIA took when ✕ was clicked. The main log stayed silent when a tray host was found, and also when the AppImage launcher was already current, was left alone, or came from a package install. The tester would have had to rebuild that state by hand. Now both checks write one line on every outcome, so the log alone tells us whether ✕ should hide or minimize, and why.

This only adds logging; what ✕ does is unchanged. The issue stays open until the real Fedora run is attached.

Refs #7138

Test plan

  • npx jest in tests/electron passes (61 suites, including a new test that logs both tray-host answers)
  • python util/lint.py --all passes. Two Python checks (import validation, tool descriptions) failed in this job, on files this change doesn't touch.
  • python -m pytest tests/unit/ -x passes. It couldn't run in this job because a dev dependency (responses) wasn't installed. This change has no Python.
  • On Fedora Workstation (GNOME, extensions off), start the AppImage, then run grep -E '\[tray\]|AppImage launcher' ~/.gaia/electron-main.log. Expect one AppImage launcher <status>: <path> line and one [tray] line.

⚠️ Needs manual validation: the automated checks confirm there's no regression, but they can't run a packaged AppImage. A maintainer should run the last step on a real Fedora GNOME desktop before merging.

🔍 Technical details
  • main.cjs: logs launcher.status and entry for every status except not-appimage. Before, only written was logged; current, kept-existing and package-installed were silent.
  • services/tray-manager.cjs setHost: logs when a host is available too. The wording doesn't claim that ✕ hides, because that still depends on the minimize-to-tray setting.
  • This is the "self-reporting" follow-up suggested in the issue's first comment.

The main log said nothing when the launcher was already current, kept, or
package-installed, or when a tray host was found, so a Fedora run of the
close path could not show which branch GAIA took.

Refs #7138
@kovtcharov

Copy link
Copy Markdown
Contributor

Replaced by #7156: the same commit, opened from a fork so the full CI runs. GitHub Actions opened this one, so only CodeQL ran here. This one can be closed.

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Closing as a duplicate of #7156, which carries the same commit and runs the full CI.

kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Nov 11, 2026
…ath (amd#7156)

Before this change, the Fedora run that amd#7138 asks for couldn't show
which path GAIA took when ✕ was clicked. The main log stayed silent when
a tray host was found, and also when the AppImage launcher was already
current, was left alone, or came from a package install. The tester
would have had to rebuild that state by hand. Now both checks write one
line on every outcome, so the log alone tells us whether ✕ should hide
or minimize, and why.

This only adds logging; what ✕ does is unchanged. The issue stays open
until the real Fedora run is attached.

Refs amd#7138
Replaces amd#7141, which GitHub Actions opened, so the full CI never ran on
it. Same commit.

## Test plan

- [x] `npx jest` in `tests/electron` passes (61 suites, including a new
test that logs both tray-host answers). Also run on Fedora 44 merged
with amd#7149 and amd#7155: 62 suites, 1,592 tests pass
- [ ] `python util/lint.py --all` passes. Two Python checks (import
validation, tool descriptions) failed in this job, on files this change
doesn't touch.
- [ ] `python -m pytest tests/unit/ -x` passes. It couldn't run in this
job because a dev dependency (`responses`) wasn't installed. This change
has no Python.
- [ ] On Fedora Workstation (GNOME, extensions off), start the AppImage,
then run `grep -E '\[tray\]|AppImage launcher'
~/.gaia/electron-main.log`. Expect one `AppImage launcher <status>:
<path>` line and one `[tray]` line.

> ⚠️ **Needs manual validation:** the automated checks confirm there's
no regression, but they can't run a packaged AppImage. A maintainer
should run the last step on a real Fedora GNOME desktop before merging.

<details>
<summary>🔍 Technical details</summary>

- `main.cjs`: logs `launcher.status` and `entry` for every status except
`not-appimage`. Before, only `written` was logged; `current`,
`kept-existing` and `package-installed` were silent.
- `services/tray-manager.cjs` `setHost`: logs when a host is available
too. The wording doesn't claim that ✕ hides, because that still depends
on the minimize-to-tray setting.
- This is the "self-reporting" follow-up suggested in the issue's first
comment.
</details>

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
kovtcharov-amd added a commit to kovtcharov/gaia that referenced this pull request Nov 11, 2026
…h that misses it

The `--search "autofix/issue-<N> in:head"` check returns nothing even when the draft exists (issue amd#7138 has draft amd#7141 on autofix/issue-7138, and the search finds neither), so a fix session would open a second PR. `--head autofix/issue-<N>` is the filter the auto-fix workflow itself uses.
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