Skip to content

fix(pi): make notification PR links clickable - #6531

Open
connectwithclayton wants to merge 5 commits into
kunchenguid:mainfrom
connectwithclayton:fm/fm-pi-notification-pr-links
Open

connectwithclayton wants to merge 5 commits into
kunchenguid:mainfrom
connectwithclayton:fm/fm-pi-notification-pr-links

Conversation

@connectwithclayton

@connectwithclayton connectwithclayton commented Oct 4, 2026 •

Copy link
Copy Markdown

Intent

can we try to fix that so it works within chat?

The automatically rendered sailboat notification for Toolroll's merged CI fix contained https://github.com/connectwithclayton/toolroll/pull/148, but the URL could not be clicked from the current Pi chat to open that PR.

What Changed

  • Render canonical GitHub pull request URLs in Pi sailboat notifications as clickable OSC 8 links.
  • Keep trailing sentence punctuation and longer pull request paths outside the link target.
  • Document the behavior and add portable and real Pi fullscreen regression coverage.

Risk Assessment

✅ Low: The change is narrowly scoped, preserves sentence punctuation outside exact canonical GitHub PR links, rejects longer paths without partial linkification, and includes behavior-level portable and real-Pi regression coverage.

Testing

Drove canonical, sentence-punctuated, and adversarial longer-path notification URLs through Pi 1.0.1's real fullscreen renderer and OSC 8 click resolver, then ran the focused portable branch-extension regression; both commands exited successfully and the worktree remained clean. No screenshot was captured because the tested contract is terminal hyperlink metadata, which is not visually distinguishable in a static image; the evidence log records the live fullscreen resolver result.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Captain views a routine notification containing an exact canonical GitHub PR URL and Pi exposes the complete URL as its click target ✅ pass live Pi fullscreen PR-link live validation
Captain views a canonical PR URL followed by sentence-ending punctuation and the punctuation remains visible but outside the click target ✅ pass live Pi fullscreen PR-link live validation
Captain views a longer /pull/148/files URL and no portion of it becomes a /pull/148 click target ✅ pass live Pi fullscreen PR-link live validation
Evidence: Pi fullscreen PR-link live validation

Source: Pi fullscreen PR-link live validation

Real Pi SDK 1.0.1 gives only a canonical PR URL its exact fullscreen click target.

ok - real Pi SDK 1.0.1 accepts the branch session construction and preserves an unpromptable wake
ok - real Pi SDK 1.0.1 rejects a post-construction 429 to watcher-owned main delivery without losing its durable row
ok - real Pi SDK 1.0.1 applies an explicit branch model on create and over a reopened session's recorded model
ok - real Pi SDK 1.0.1 reports its own supported effort levels and applies an explicit branch effort over a reopened session's recorded level
ok - real Pi SDK 1.0.1 gives only a canonical PR URL its exact fullscreen click target
ok - real Pi SDK 1.0.1 queues a streaming-time watcher wake without before_agent_start, keeps the successor chain, and surfaces consumption of both follow-ups
ok - real Pi SDK 1.0.1 suppresses only empty or exact-repeat retry finals, retains first and differing replies after reopen, buffers retry streaming, and keeps outcomes retryable

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Captain views a routine notification containing an exact canonical GitHub PR URL and Pi exposes the complete URL as its click target ✅ pass live Pi fullscreen PR-link live validation
Captain views a canonical PR URL followed by sentence-ending punctuation and the punctuation remains visible but outside the click target ✅ pass live Pi fullscreen PR-link live validation
Captain views a longer /pull/148/files URL and no portion of it becomes a /pull/148 click target ✅ pass live Pi fullscreen PR-link live validation
  • FM_PI_BRANCH_LIVE_E2E=1 bash tests/fm-pi-branch-live-e2e.test.sh
  • bash tests/fm-pi-branch-extension.test.sh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds clickable GitHub pull request links to routine notifications.

The PR appears safe to merge; no new actionable issue remains.

Reviews (3) · Last reviewed commit: "no-mistakes(document): Align Pi link ver..."

Comment thread .pi/extensions/fm-branch-supervision.ts Resolved
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: first look vs tip 1f3e7696. Diff reviewed (Pi branch supervision merge-note renderer wraps exact canonical GitHub /pull/N URLs in hyperlink/OSC 8; sentence-ending . kept outside the click target; longer /files paths stay unlinked; portable + live Pi 1.0.1 coverage; docs).

Contract-class: restore — concrete existing routine sailboat notification path already rendered PR URLs as plain text that could not be activated in fullscreen Pi chat; tip restores clickability for the exact canonical URL without adding a new captain surface/wake/digest. Not new-default (existing notification renderer only).

VISION (per /workspace/VISION.md):

  1. One captain, one interface — aligns (honest clickable outcome links in existing routine notes; less tab-juggling).
  2. Authority is explicit and never inferred — aligns (presentation only; no autonomy).
  3. Scripts own the mechanics, agents own the judgment — aligns (deterministic URL matcher in renderer).
  4. A restart is a non-event — n/a (render-time only).
  5. Delegation with a spine — n/a.
  6. The fleet outlives any vendor — aligns (uses Pi TUI hyperlink; quarantined to Pi supervision branch extension).
  7. Scope — aligns (Pi supervision presentation; not workshop).

Attestation MATCH HEAD e28a7bcb. Greptile SUCCESS (prior P2 punctuation fixed on tip). No security risk (.github/workflows untouched). First-time fork workflows approved → waiting-ci. No linked Fixes/Closes issue in body. Firstmate-flag=no.

@connectwithclayton
connectwithclayton force-pushed the fm/fm-pi-notification-pr-links branch from e28a7bc to 0fdad86 Compare October 5, 2026 16:26
@connectwithclayton connectwithclayton changed the title fix(pi): make routine PR notification links clickable fix(pi): make notification PR links clickable Oct 5, 2026
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