Include current_directory and custom_color in list-workspaces output (#544)

Expose workspace working directory and tab color in the workspace.list
response, enabling CLI-based workspace sorting and color inspection.
This commit is contained in:
Ariel Tobiana 2026-03-13 08:40:38 +02:00 committed by GitHub
parent 9b0bf2f66d
commit 1d6f55ce97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2877,7 +2877,9 @@ class TerminalController {
"index": index,
"title": ws.title,
"selected": ws.id == tabManager.selectedTabId,
"pinned": ws.isPinned
"pinned": ws.isPinned,
"current_directory": v2OrNull(ws.currentDirectory),
"custom_color": v2OrNull(ws.customColor)
]
}
}