diff --git a/packages/terminal/terminal-bash/tests/index.spec.ts b/packages/terminal/terminal-bash/tests/index.spec.ts index b081aa4fb2..f763114d3d 100644 --- a/packages/terminal/terminal-bash/tests/index.spec.ts +++ b/packages/terminal/terminal-bash/tests/index.spec.ts @@ -257,7 +257,8 @@ describe('BashTerminalBackend startup rollback', () => { it('wraps confined argv, scrubs the environment, and returns initialized sessions', async () => { const ctx = new Context() - provideWorkingDirectoryFixture(ctx) + // The Agent's Session records no directory, so the directory service's default bounds it. + provideWorkingDirectoryFixture(ctx, resolve('/workspace')) await ctx.plugin(RecordingSandbox) await ctx.plugin(SessionProjectionRegistry) await ctx.plugin(SandboxPolicyService, { mode: 'workspace-write', workspaceRoot: '/workspace' }) diff --git a/packages/terminal/terminal-bash/tests/local.spec.ts b/packages/terminal/terminal-bash/tests/local.spec.ts index 2feec7a9a7..227c160052 100644 --- a/packages/terminal/terminal-bash/tests/local.spec.ts +++ b/packages/terminal/terminal-bash/tests/local.spec.ts @@ -61,7 +61,8 @@ async function harness( const root = mkdtempSync(join(tmpdir(), 'dsh-pty-local-')) roots.push(root) const ctx = new Context() - provideWorkingDirectoryFixture(ctx) + // The Agents' Sessions record no directory, so the directory service's default is their workspace. + provideWorkingDirectoryFixture(ctx, root) contexts.push(ctx) await ctx.plugin(SessionProjectionRegistry) await ctx.plugin(AgentRegistry)