macos task switch focus

This commit is contained in:
Ian Gulliver
2026-10-17 09:04:32 -07:00
parent ebf1561c4a
commit c42a513e2c
14 changed files with 68 additions and 12 deletions
+6 -2
View File
@@ -170,8 +170,12 @@ final class ChatModel {
}
}
func takeFocusStart() -> Bool {
let take = focusStart && session == nil
func takeFocus() -> Bool {
let asked = taskId != nil && store.composerFocus == taskId
if asked {
store.composerFocus = nil
}
let take = asked || (focusStart && session == nil)
focusStart = false
return take
}