Skip to content

fix(tray): show cards without a wrapped line; default SSH key setting - #21

Merged
arlinamid merged 2 commits into
mainfrom
fix/tray-card-height
Nov 20, 2026
Merged

arlinamid merged 2 commits into
mainfrom
fix/tray-card-height

Conversation

@arlinamid

@arlinamid arlinamid commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Two problems found while testing #20 live from the tray:

  1. Empty panel after Connect. The attached runtime became an idle local card with no detail line; a card without a word-wrapped label has no height for width (Qt returns about 1 px), so the card list (sized since feat: stop a runtime by endpoint; the tray can stop web UI runtimes #14 by height for width) collapsed. Each card now takes the larger of its size hint and its height for the panel width.
  2. The tray's SSH button failed with "no SSH public key found" when the key is not ~/.ssh/id_ed25519 / id_ecdsa (the tray passes no -i). colab ssh and colab forward without -i now take COLAB_CLI_SSH_IDENTITY, else ssh_identity in settings.json, else the default keys; the no-key message names the setting.

Tests: test_a_card_without_wrapped_text_is_shown, tests/test_ssh_identity_setting.py; full suite 1299 passed. Live: card shown after Connect; colab ssh -- CMD without -i; the tray's SSH button opened a shell on the attached web UI runtime.

🤖 Generated with Claude Code

arlinamid and others added 2 commits November 20, 2026 03:03
The card list is sized by each card's height for the panel width. A card
without a word-wrapped label (an idle runtime, such as one just attached
with Connect) has no height for width, and Qt returns about 1 px, so the
list collapsed and the panel looked empty after Connect. Take the larger
of the size hint and the height for width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tray's SSH and forward buttons run `colab ssh` / `colab forward`
without -i, so only ~/.ssh/id_ed25519 and id_ecdsa could be used from
there; a key such as ~/.ssh/colab_ed25519 ended with "no SSH public key
found". Without -i, both commands now take COLAB_CLI_SSH_IDENTITY, else
`ssh_identity` in settings.json, else the default keys, and the no-key
message names the setting.

Tested live: `colab ssh -- CMD` without -i using the variable, and the
tray's SSH button on an attached web UI runtime with the setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arlinamid arlinamid changed the title fix(tray): show cards that have no wrapped line fix(tray): show cards without a wrapped line; default SSH key setting Nov 20, 2026
@arlinamid
arlinamid merged commit d2e2450 into main Nov 20, 2026
4 checks passed
arlinamid added a commit that referenced this pull request Nov 20, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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