feat(app): extract prompt state and add composer model selection (#36227)

This commit is contained in:
Brendan Allan 2026-07-10 15:49:05 +08:00 committed by GitHub
commit 8a03fc265b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 730 additions and 294 deletions

View file

@ -16,6 +16,9 @@ export function createTabMemory(owner: Owner | null) {
}
return {
get<T>(key: string, name: string) {
return entries.get(key)?.get(name)?.value as T | undefined
},
ensure<T>(key: string, name: string, init: () => T) {
const state = entries.get(key) ?? new Map<string, Entry>()
if (!entries.has(key)) entries.set(key, state)