fix: share private chat files and harden native lifecycle

This commit is contained in:
snowspeeder committed 2026-10-03 09:16:56 -04:00
1 parent 7dcd06c911
commit ec510b938b
8 files changed
+83 -15

No files matched your search

+3
View File
@@ -43,10 +43,13 @@ final class ChatTests: XCTestCase {
XCTAssertFalse(store.researchAvailable)
await store.exportConversation(format: "markdown")
XCTAssertTrue(store.exportText?.contains("Export this") == true)
XCTAssertTrue(store.exportFile?.filename.hasSuffix(".md") == true)
XCTAssertEqual(store.exportFile?.data, Data(store.exportText!.utf8))
store.foreground(true)
store.foreground(false)
store.close()
XCTAssertNil(store.exportText)
XCTAssertNil(store.exportFile)
XCTAssertFalse(store.research)
}
func testBranchAndRegeneratePreserveOriginal() async throws {