fix(coding-agent): hyperlink update changelog closes #4280

This commit is contained in:
Mario Zechner
2026-05-08 15:06:57 +02:00
parent 90c017b05b
commit defd7038ab
2 changed files with 11 additions and 5 deletions

View File

@@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- Fixed the interactive update notification to render the changelog as an OSC 8 hyperlink when the terminal supports hyperlinks ([#4280](https://github.com/earendil-works/pi/issues/4280)).
## [0.74.0] - 2026-05-07
### Changed

View File

@@ -33,6 +33,8 @@ import {
type Component,
Container,
fuzzyFilter,
getCapabilities,
hyperlink,
Loader,
type LoaderIndicatorOptions,
Markdown,
@@ -3515,11 +3517,11 @@ export class InteractiveMode {
showNewVersionNotification(newVersion: string): void {
const action = theme.fg("accent", `${APP_NAME} update`);
const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
const changelogUrl = theme.fg(
"accent",
"https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md",
);
const changelogLine = theme.fg("muted", "Changelog: ") + changelogUrl;
const changelogUrl = "https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md";
const changelogLink = getCapabilities().hyperlinks
? hyperlink(theme.fg("accent", "open changelog"), changelogUrl)
: theme.fg("accent", changelogUrl);
const changelogLine = theme.fg("muted", "Changelog: ") + changelogLink;
this.chatContainer.addChild(new Spacer(1));
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));