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
-4
View File
@@ -22,10 +22,7 @@ export interface CellContext {
error: ErrorOutput | null;
}
export type OpenCodeMode = 'optimize' | 'fix' | 'edit';
export interface OpenCodeRequest {
mode: OpenCodeMode;
prompt: string;
context: CellContext;
providerId?: string;
@@ -34,7 +31,6 @@ export interface OpenCodeRequest {
export interface OpenCodeSuccess {
ok: true;
mode: OpenCodeMode;
finalSource: string;
sessionId: string;
notebookPath: string;