Align worktree host labels across desktop and mobile (#18237)

* refactor: align worktree host labels across clients

* fix(mobile): expose safe host display labels

* fix(mobile): preserve legacy mixed-host labels

---------

Co-authored-by: Merge Sim <sim@local>
This commit is contained in:
Brennan Benson
2026-09-02 15:32:06 -07:00
committed by GitHub
co-authored by Merge Sim
parent 074a2366bf
commit 7f8eb90ac3
15 changed files with 618 additions and 26 deletions
@@ -23,6 +23,9 @@ describe('OrcaRuntimeService', () => {
...store,
getSettings: () => ({
...store.getSettings(),
hostSettingOverrides: {
'ssh:target-1': { displayLabel: 'Build host', defaultWorktreeLocation: '/srv/worktrees' }
},
experimentalNewWorktreeCardStyle: true,
compactWorktreeCards: true,
minimaxGroupId: 'group-42',
@@ -39,6 +42,9 @@ describe('OrcaRuntimeService', () => {
minimaxUsageModels: 'general,abab6.5'
})
expect(runtime.getClientSettings()).not.toHaveProperty('terminalQuickCommands')
expect(runtime.getClientSettings().hostSettingOverrides).toEqual({
'ssh:target-1': { displayLabel: 'Build host' }
})
expect(runtime.getClientTerminalQuickCommands()).toEqual(terminalQuickCommands)
})