feat(keyboard): ship AI mode surface with streaming search answers
Add the AI keyboard tab, Agent settings, and user-owned LLM key path for 1.7.0, including streaming answers and web-search transports without the built-in DeepSeek fallback.
This commit is contained in:
@@ -115,4 +115,18 @@ final class RimeSchemaGeneratorTests: XCTestCase {
|
||||
.typing
|
||||
)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func testAISurfaceRestoresAsEmptyModeWithoutGeneralRememberSetting() {
|
||||
let suiteName = "TypingInputConfigurationTests.\(UUID().uuidString)"
|
||||
let defaults = UserDefaults(suiteName: suiteName)!
|
||||
defer { defaults.removePersistentDomain(forName: suiteName) }
|
||||
|
||||
TypingInputConfiguration.persistLastSurface(.ai, defaults: defaults)
|
||||
|
||||
XCTAssertEqual(
|
||||
TypingInputConfiguration.preferredSurfaceOnOpen(defaults: defaults),
|
||||
.ai
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user