@mariozechner/pi-coding-agent 0.45.4 → 0.45.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -452,10 +452,9 @@ export class InteractiveMode {
452
452
  const changelogPath = getChangelogPath();
453
453
  const entries = parseChangelog(changelogPath);
454
454
  if (!lastVersion) {
455
- if (entries.length > 0) {
456
- this.settingsManager.setLastChangelogVersion(VERSION);
457
- return entries.map((e) => e.content).join("\n\n");
458
- }
455
+ // Fresh install - just record the version, don't show changelog
456
+ this.settingsManager.setLastChangelogVersion(VERSION);
457
+ return undefined;
459
458
  }
460
459
  else {
461
460
  const newEntries = getNewEntries(entries, lastVersion);
@@ -1039,8 +1038,21 @@ export class InteractiveMode {
1039
1038
  return;
1040
1039
  component = c;
1041
1040
  if (isOverlay) {
1042
- const w = component.width;
1043
- this.ui.showOverlay(component, w ? { width: w } : undefined);
1041
+ // Resolve overlay options - can be static or dynamic function
1042
+ const resolveOptions = () => {
1043
+ if (options?.overlayOptions) {
1044
+ const opts = typeof options.overlayOptions === "function"
1045
+ ? options.overlayOptions()
1046
+ : options.overlayOptions;
1047
+ return opts;
1048
+ }
1049
+ // Fallback: use component's width property if available
1050
+ const w = component.width;
1051
+ return w ? { width: w } : undefined;
1052
+ };
1053
+ const handle = this.ui.showOverlay(component, resolveOptions());
1054
+ // Expose handle to caller for visibility control
1055
+ options?.onHandle?.(handle);
1044
1056
  }
1045
1057
  else {
1046
1058
  this.editorContainer.clear();