Skip to content

Comments

Sync desktop/ from omi-desktop (474e1e1f)#4959

Closed
m13v wants to merge 1 commit intomainfrom
sync/desktop-20260222-172154
Closed

Sync desktop/ from omi-desktop (474e1e1f)#4959
m13v wants to merge 1 commit intomainfrom
sync/desktop-20260222-172154

Conversation

@m13v
Copy link
Collaborator

@m13v m13v commented Feb 22, 2026

Automated sync from omi-desktop at 474e1e1f.

This PR was created by the sync pipeline.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is an automated sync that brings in a substantial number of features, refactorings, and stability improvements. Key changes include unifying the AI chat bridge into a single, more capable ACPBridge, a complete overhaul of the Tasks UI with advanced features like drag-and-drop and inline editing, and a redesigned onboarding flow. The PR also introduces significant stability enhancements, such as an auto-restart mechanism for extreme memory usage, watchdogs for subprocesses, and numerous bug fixes related to concurrency and UI. The overall quality of the changes is very high. I have one suggestion to improve maintainability by removing some duplicated code in AgentSyncService.

Comment on lines +353 to 359
} else if httpResponse.statusCode >= 500 {
let body = String(data: data, encoding: .utf8) ?? ""
log("AgentSync: push \(table) failed — HTTP \(httpResponse.statusCode): \(body)")
return .networkError // 5xx = server not ready, trigger backoff
} else {
let body = String(data: data, encoding: .utf8) ?? ""
log("AgentSync: push \(table) failed — HTTP \(httpResponse.statusCode): \(body)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This new error handling logic introduces some code duplication. The lines to decode the response body and log the error are repeated in both the else if and the else blocks. This can be refactored into a single else block to handle all non-200 status codes, with a nested if for the 5xx-specific return value. This will make the code more concise and easier to maintain.

            } else {
                let body = String(data: data, encoding: .utf8) ?? ""
                log("AgentSync: push \(table) failed — HTTP \(httpResponse.statusCode): \(body)")
                if httpResponse.statusCode >= 500 {
                    return .networkError  // 5xx = server not ready, trigger backoff
                }
            }

@m13v m13v closed this Feb 23, 2026
@m13v m13v deleted the sync/desktop-20260222-172154 branch February 23, 2026 03:32
@github-actions
Copy link
Contributor

Hey @m13v 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our roadmap and vision

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community! 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant