chore: remove stray screenshot and harden daemon getCwd test

- drop orca-before-split.png accidentally committed in the Wip commit
- accept null OR string from getCwd in the daemon test, since the new
  terminal-host fallback calls resolveProcessCwd(pid) and the mock pid
  55555 could resolve against a live process on CI

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinjing
2026-04-29 15:49:12 -07:00
co-authored by Orca
parent 2151c18596
commit eb4cfc7bec
2 changed files with 6 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

+6 -2
View File
@@ -171,8 +171,12 @@ describe('DaemonServer', () => {
sessionId: 'test-session'
})
// Mock subprocess doesn't emit OSC-7, so cwd is null
expect(result.cwd).toBeNull()
// Mock subprocess doesn't emit OSC-7. The terminal-host fallback then
// calls resolveProcessCwd(55555); on CI that pid is almost always dead
// so the result is null, but we accept string too — a recycled pid that
// happens to match would legitimately return a path and we don't want
// this test to flake on whatever happens to be running on the host.
expect(result.cwd === null || typeof result.cwd === 'string').toBe(true)
})
it('returns error for unknown session operations', async () => {