fix(mobile): stop republishing stale launch agent identity (#14244)

This commit is contained in:
Brennan Benson
2026-08-13 11:43:48 -07:00
committed by GitHub
parent 76ecad1091
commit e525f3fe15
3 changed files with 62 additions and 5 deletions
+3 -3
View File
@@ -24549,7 +24549,7 @@ describe('OrcaRuntimeService', () => {
)
})
it('derives remote OMP owner from live PTY metadata when the tab snapshot omits it', async () => {
it('normalizes a remote OMP title without republishing omitted launch identity', async () => {
const spawn = vi.fn().mockResolvedValue({ id: 'pty-omp' })
const runtime = new OrcaRuntimeService(store)
runtime.setPtyController({
@@ -24623,10 +24623,10 @@ describe('OrcaRuntimeService', () => {
expect(result.tabs[0]).toEqual(
expect.objectContaining({
type: 'terminal',
title: '\u280b OMP',
launchAgent: 'omp'
title: '\u280b OMP'
})
)
expect(result.tabs[0]).not.toHaveProperty('launchAgent')
})
it('skips the foreground-process probe when the PTY launch agent is already known', async () => {