Rename Call History to Phone and add a phone_call tool - #213
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical activation, argument-validation, and dialing-safety issues remain unresolved.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Renames Call History to Phone and adds outbound calling support.
Changes:
- Adds
phone_calls_fetchandphone_call. - Refactors call-history access.
- Updates service registration and settings.
File summaries
| File | Review |
|---|---|
App/Services/Phone.swift |
Critical: activation unnecessarily requires call-history access; fetch arguments lack validation; phone-number sanitization can dial unintended recipients. |
App/Services/CallHistory.swift |
Removes the superseded standalone service. |
App/Controllers/ServerController.swift |
Registers and configures the Phone service. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 3
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Four moderate issues in Phone.swift must be addressed before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (2)
Previously missed (2) — in code that hasn't changed since the last review.
App/Services/Phone.swift:185
storeBookmark(for:)catches bookmark creation failures, so this method logs that access was granted and continues even though no usable bookmark exists; the immediately following fetch then fails misleadingly withnoBookmarkFound(or can reuse an older bookmark). Make bookmark creation throwing and propagate the failure here before reporting success.
App/Services/Phone.swift:402- Any
sqlite3_stepresult other thanSQLITE_ROWis currently treated as successful completion. If stepping fails withSQLITE_BUSY,SQLITE_IOERR, or another error, this returns an empty or partial call list as a successful tool result. Check explicitly forSQLITE_DONEand throwSQLiteErrorfor every other result.
- Files reviewed: 3/3 changed files
- Comments generated: 2
- Review effort level: Balanced
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.
Follow up to #157