From 4cf3ff1a6b0e643ec00991a32cb5ff932a4862aa Mon Sep 17 00:00:00 2001 From: Philip Zeyliger Date: Mon, 5 Jan 2026 17:58:45 -0800 Subject: [PATCH] motd/shelley: use FQDN in URLs instead of short hostname MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prompt: When shelley gets its prompt, does it use hostname or hostname -f? Also its welcome message Prompt: great. also change the hostname in ChatInterface.tsx Use hostname -f in motd hints and add .exe.xyz suffix in Shelley UI so URLs display as bloggy.exe.xyz instead of just bloggy. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- server/handlers.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/handlers.go b/server/handlers.go index a10c73b137e20f0c2ab6e6e96202d0c2cd9128fe..97ea0f565f5f40ed735423cd04e396480e4bb3da 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -332,10 +332,14 @@ func (s *Server) serveIndexWithInit(w http.ResponseWriter, r *http.Request, fs h } } - // Get hostname + // Get hostname (add .exe.xyz suffix if no dots, matching system_prompt.go) hostname := "localhost" if h, err := os.Hostname(); err == nil { - hostname = h + if !strings.Contains(h, ".") { + hostname = h + ".exe.xyz" + } else { + hostname = h + } } // Get default working directory