Skip to content

Identify agent sessions directly in desktop health alerts - #66

Merged
jmc-wander merged 1 commit into
mainfrom
fix/desktop-session-identity
Sep 26, 2026
Merged

jmc-wander merged 1 commit into
mainfrom
fix/desktop-session-identity

Conversation

@jmc-wander

@jmc-wander jmc-wander commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Desktop health alerts currently show an alert UUID and an inbox command, so the popup does not identify the agent session when it cannot be clicked.

Show the agent, Claude session name when safely available, short session ID, readable issue, and compact project path directly in the banner. Fall back to project and ID when metadata is unavailable. Keep monitoring, acknowledgement, and retry behavior unchanged. Include project notes under .kin/.

Validation:

  • 23 independent popup cases passed, with behavioral failures observed before implementation and before the stale-title correction.
  • Full local suite on the original base: 2,917 passed, 1 skipped. The sole installation-path failure passed in a temporary installed environment.
  • Notification acceptance checks rerun against current main plus this change; hosted CI validates the final PR head.
  • Exact-session local rendering and a macOS preview submission verified. OS submission does not establish visibility; long or wide titles can still be truncated.

Implementation and tests were authored in separate agent contexts, with execution and an additional review performed separately. This is role separation, not model diversity or filesystem isolation.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@jmc-wander
jmc-wander merged commit 0680782 into main Sep 26, 2026
3 checks passed
@jmc-wander
jmc-wander deleted the fix/desktop-session-identity branch September 26, 2026 02:11

@adaptcom adaptcom Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Confidence Score: 4/5

Summary

Adds session identity to desktop alerts with limited presentation risk. One boundary case drops a valid title; macOS banner visibility remains unverified.

Important Files Changed

File Overview
.kin/supervisor-popup-notes.md Documents identity fallbacks, metadata safeguards, and transport limitations.
src/kindex/supervisor_display.py Adds bounded title lookup and compact banner formatting.
src/kindex/supervisor_notifications.py Uses session-aware text while preserving transport handling.
tests/test_desktop_session_identity.py Covers title selection, fallbacks, sanitization, and fixed-script transport.

↻ Re-run review · View in Adapt

if start:
# Only a tail title can be current: an old head title may have been
# superseded in the unread middle. Drop the partial boundary line.
data = data.split(b"\n", 1)[1] if b"\n" in data else b""

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Complete titles aligned with the 32 KiB read boundary are discarded; drop the first line only when the preceding byte is not a newline.

@shanebarakat shanebarakat mentioned this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant