fix(coding-agent): hyperlink update changelog closes #4280
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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
|
## [0.74.0] - 2026-05-07
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ import {
|
|||||||
type Component,
|
type Component,
|
||||||
Container,
|
Container,
|
||||||
fuzzyFilter,
|
fuzzyFilter,
|
||||||
|
getCapabilities,
|
||||||
|
hyperlink,
|
||||||
Loader,
|
Loader,
|
||||||
type LoaderIndicatorOptions,
|
type LoaderIndicatorOptions,
|
||||||
Markdown,
|
Markdown,
|
||||||
@@ -3515,11 +3517,11 @@ export class InteractiveMode {
|
|||||||
showNewVersionNotification(newVersion: string): void {
|
showNewVersionNotification(newVersion: string): void {
|
||||||
const action = theme.fg("accent", `${APP_NAME} update`);
|
const action = theme.fg("accent", `${APP_NAME} update`);
|
||||||
const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
|
const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
|
||||||
const changelogUrl = theme.fg(
|
const changelogUrl = "https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md";
|
||||||
"accent",
|
const changelogLink = getCapabilities().hyperlinks
|
||||||
"https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md",
|
? hyperlink(theme.fg("accent", "open changelog"), changelogUrl)
|
||||||
);
|
: theme.fg("accent", changelogUrl);
|
||||||
const changelogLine = theme.fg("muted", "Changelog: ") + changelogUrl;
|
const changelogLine = theme.fg("muted", "Changelog: ") + changelogLink;
|
||||||
|
|
||||||
this.chatContainer.addChild(new Spacer(1));
|
this.chatContainer.addChild(new Spacer(1));
|
||||||
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
||||||
|
|||||||
Reference in New Issue
Block a user