feat(daemon): include device name in runtime display name
Change runtime naming from "Local Claude" to "Claude (hostname)" so team members can distinguish runtimes in shared workspaces.
This commit is contained in:
parent
0a38643ef4
commit
7aa784ccd3
1 changed files with 5 additions and 1 deletions
|
|
@ -210,8 +210,12 @@ func (d *Daemon) registerRuntimesForWorkspace(ctx context.Context, workspaceID s
|
|||
d.logger.Warn("skip registering runtime", "name", name, "error", err)
|
||||
continue
|
||||
}
|
||||
displayName := strings.ToUpper(name[:1]) + name[1:]
|
||||
if d.cfg.DeviceName != "" {
|
||||
displayName = fmt.Sprintf("%s (%s)", displayName, d.cfg.DeviceName)
|
||||
}
|
||||
runtimes = append(runtimes, map[string]string{
|
||||
"name": fmt.Sprintf("Local %s", strings.ToUpper(name[:1])+name[1:]),
|
||||
"name": displayName,
|
||||
"type": name,
|
||||
"version": version,
|
||||
"status": "online",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue