Commit c0709ced5899

Vincent Demeester <vincent@sbr.pm>
2026-04-13 14:28:47
feat(pi): add hostname to terminal title
Included hostname in the terminal title for easier identification of which host a pi session is running on, matching the existing custom footer behavior.
1 parent 552d183
Changed files (1)
dots
pi
agent
dots/pi/agent/extensions/terminal-status.ts
@@ -24,6 +24,7 @@
 
 import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
 import { execSync } from "node:child_process";
+import { hostname } from "node:os";
 import path from "node:path";
 
 // =============================================================================
@@ -156,9 +157,10 @@ function getSkillIcon(skillName: string): string {
  */
 function buildTitle(context?: string, isError?: boolean): string {
   const project = getProjectName();
+  const host = hostname();
   const prefix = "π";
 
-  let parts = [prefix, project];
+  let parts = [prefix, `${host}:${project}`];
 
   // Add git branch if available
   if (currentBranch) {