refactor: drop mode from frontend types; react to settings changes

This commit is contained in:
tao.chen
2026-07-23 12:47:44 +08:00
parent 04d011afa1
commit d03f0fa434
3 changed files with 14 additions and 16 deletions
-2
View File
@@ -64,7 +64,6 @@ function mockResponse(overrides: {
}
const sampleRequest: OpenCodeRequest = {
mode: 'edit',
prompt: 'add type hints',
context: {
notebookPath: 'foo.ipynb',
@@ -86,7 +85,6 @@ describe('callOpenCodeEdit', () => {
it('POSTs to /opencode-bridge/edit with JSON body', async () => {
const respBody = {
ok: true,
mode: 'edit',
finalSource: 'def foo(x: int) -> int: return x',
sessionId: 'sid',
notebookPath: 'foo.ipynb',