fix(editor): preserve tabs in file views

This commit is contained in:
Tianyi Cui
2026-07-30 00:05:58 +08:00
parent 38e4a7bf7f
commit 514238ee47
11 changed files with 73 additions and 68 deletions

View File

@@ -82,11 +82,11 @@ const SCENARIOS: SdkScenario[] = [
},
{
name: 'persistent-tools',
prompt: 'Prove that bash state persists, then create and edit the exact file {{cwd}}/note.txt.',
prompt: 'Prove that bash state persists. Then create {{cwd}}/note.txt with a tab-indented line, view it, and replace that literal tab-indented line.',
sessionId: 'persistent-tools-snapshot',
children: 0,
configs: { live: persistentToolsLiveConfig, replay: persistentToolsReplayConfig },
expectedFiles: { 'note.txt': 'beta\n' },
expectedFiles: { 'note.txt': 'target:\n\tnew\n' },
expectedTools: { bash: ['command'], str_replace_editor: ['command', 'path'] },
},
]