Func pill: eyedropper (colour in many formats in a new brov-chat tab, HEX to clipboard, context for claude) and live Mac card (CPU, cores, RAM, SSD)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -275,6 +275,7 @@ final class ClaudeService {
|
||||
let tab = state.activeTabId
|
||||
let cli = ChatTabs.shared.cli(for: tab)
|
||||
func isOnScreen() -> Bool { tab == nil || state.activeTabId == tab }
|
||||
let seed = cli.sessionID == nil ? ChatTabs.shared.takeSeed(tab) : nil
|
||||
var prompt = query
|
||||
// Context goes with the first message of a conversation, like the API chat.
|
||||
if cli.sessionID == nil, let context {
|
||||
@@ -293,6 +294,8 @@ final class ClaudeService {
|
||||
}
|
||||
}
|
||||
|
||||
if let seed { prompt = seed + "\n\n" + prompt }
|
||||
|
||||
let placeholder = ChatMessage(role: .assistant, content: "")
|
||||
let msgId = placeholder.id
|
||||
if let tab { ChatTabs.shared.append(tab: tab, placeholder) } else { state.chatHistory.append(placeholder) }
|
||||
|
||||
Reference in New Issue
Block a user