mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-06 06:41:56 +00:00
feat(claude): add effort setting parity with model across stack (#353)
Co-authored-by: Xiaoyi <xiaoyizhang@microsoft.com>
This commit is contained in:
@@ -175,6 +175,7 @@ export const SessionSchema = z.object({
|
||||
todos: TodosSchema.optional(),
|
||||
teamState: TeamStateSchema.optional(),
|
||||
model: z.string().nullable(),
|
||||
effort: z.string().nullable(),
|
||||
permissionMode: PermissionModeSchema.optional(),
|
||||
collaborationMode: CodexCollaborationModeSchema.optional()
|
||||
})
|
||||
|
||||
@@ -19,6 +19,7 @@ export type SessionSummary = {
|
||||
todoProgress: { completed: number; total: number } | null
|
||||
pendingRequestsCount: number
|
||||
model: string | null
|
||||
effort: string | null
|
||||
}
|
||||
|
||||
export function toSessionSummary(session: Session): SessionSummary {
|
||||
@@ -47,6 +48,7 @@ export function toSessionSummary(session: Session): SessionSummary {
|
||||
metadata,
|
||||
todoProgress,
|
||||
pendingRequestsCount,
|
||||
model: session.model
|
||||
model: session.model,
|
||||
effort: session.effort
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,6 +140,7 @@ export interface ClientToServerEvents {
|
||||
mode?: 'local' | 'remote'
|
||||
permissionMode?: PermissionMode
|
||||
model?: string | null
|
||||
effort?: string | null
|
||||
collaborationMode?: CodexCollaborationMode
|
||||
}) => void
|
||||
'session-end': (data: { sid: string; time: number }) => void
|
||||
|
||||
Reference in New Issue
Block a user