Identify local background servers in /status (#46905)

## What changed

Rename the `/status` connection row from `Remote` to `Server`. For local daemon connections, display `Local background server` instead of the socket address and version. Keep the address and version for remote connections, including explicitly configured Unix sockets.

## Testing

Add a local background server snapshot and coverage distinguishing local daemon connections from remote Unix sockets. Update daemon startup and worktree tests to expect the new label.

GitOrigin-RevId: 9460415fe1ec16d90f575917c1a4ce1bf19faaaf
This commit is contained in:
Eric Traut
2026-09-20 23:23:13 +00:00
committed by copyberry
parent eaff9a5f14
commit 88ef37c649
10 changed files with 101 additions and 43 deletions
+1 -2
View File
@@ -117,7 +117,7 @@ async fn daemon_startup(command: &str) -> Result<()> {
let expected = if command == "start" {
// The draft header is visible before the session's command composer is ready.
steps.push_back(("GPT-5.6-Terra", b"/status\r"));
"app-server-control.sock"
"Server:Localbackgroundserver"
} else if bedrock_onboarding {
"UseAmazonBedrock"
} else {
@@ -177,7 +177,6 @@ async fn daemon_startup(command: &str) -> Result<()> {
output.clear();
} else if steps.is_empty() && text.contains(expected) {
if command == "start" {
ensure!(text.contains("unix://"));
ensure!(home.path().join("app-server-daemon/daemon.pid").exists());
} else if let Some(existing_daemon) = &existing_daemon {
ensure!(fs::read(&pid_file)? == *existing_daemon);
+1 -1
View File
@@ -498,7 +498,7 @@ trust_level = "trusted"
if backend == "daemon" && !analytics && matches!(observed, Ok(Ok(_))) {
session.writer_sender().send(b"/status\r".to_vec()).await?;
tokio::time::timeout(Duration::from_secs(/*secs*/ 10), async {
while !output.contains("app-server-control.sock") {
while !output.contains("Local background server") {
let bytes = stdout
.recv()
.await