Fix AgentBoard cleanup tickets#128
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a set of cleanup tickets across AgentBoardCore and AgentBoardMobile by reducing redundant configuration work, fixing attachment upload progress observation lifetime, reducing SwiftData write amplification, adding explicit network request timeouts, and modernizing the iOS tab UI to the newer SwiftUI Tab API.
Changes:
- Dedupe GitHub service configuration in
WorkStorebehind settings change detection. - Replace cache “delete-all then insert-all” refreshes with update/insert/delete (and no-op when unchanged).
- Add explicit per-endpoint timeout contracts for REST and SSE, and migrate iOS root tabs to SwiftUI’s modern Tab API.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| AgentBoardCore/Stores/WorkStore.swift | Injects a GitHubWorkServicing abstraction and dedupes configure calls via an applied-configuration snapshot. |
| AgentBoardCore/Services/GitHubWorkService.swift | Adds GitHubWorkServicing protocol and applies explicit list vs mutation request timeouts. |
| AgentBoardCore/Services/CompanionClient.swift | Introduces explicit request timeout categories (list/mutation/stream) and applies them per endpoint. |
| AgentBoardCore/Services/AttachmentUploadService.swift | Retains KVO progress observations until upload completion/cancel and cleans them up deterministically. |
| AgentBoardCore/Persistence/AgentBoardCache.swift | Reworks replace APIs to update/insert/delete with change detection to avoid delete-all amplification. |
| AgentBoardCore/Stores/SettingsStore.swift | Adds silent option to Hermes profile selection to avoid user-facing toast on bootstrap/apply. |
| AgentBoardMobile/MobileRootView.swift | Migrates to modern SwiftUI Tab(value:) API and removes global tab bar appearance mutations. |
| AgentBoardTests/WorkStoreTests.swift | Adds coverage ensuring GitHub service configuration is only applied when settings change. |
| AgentBoardTests/SettingsStoreTests.swift | Adds regression test ensuring bootstrap applies selected Hermes profile silently. |
| AgentBoardTests/GitHubWorkServiceTests.swift | Adds assertions for list/mutation request timeout behavior. |
| AgentBoardTests/CompanionClientEventsTests.swift | Adds assertions for list/mutation timeouts and “long-lived” SSE request behavior. |
| AgentBoardTests/AgentBoardCacheTests.swift | Adds test ensuring work-item replacement updates existing records rather than replacing identity. |
| AgentBoardTests/NativeSwiftUIInterfaceTests.swift | Updates interface-contract tests for Tab API migration and the new cache/upload implementations. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #109
Closes #111
Closes #112
Closes #113
Closes #114
Closes #115
Verification
Note: iOS build still emits pre-existing warnings in AttachmentPicker and SettingsScreen; no new warning class from this patch.