Repository navigation
feat(app): find spoken moments in search + play on open - #11205
aryanorastar wants to merge 12 commits into
Conversation
Wire POST /v1/conversations/search to merge optional transcript-chunk hits, attach grep-style match_snippets with start/end, and open the transcript tab seeking that moment so in-app search finds words Typesense title/overview miss. Co-authored-by: Cursor <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
1 issue found across 16 files
Confidence score: 4/5
- In
backend/utils/conversations/mcp_transcript_search.py, the new combined transcript+summary resolver is not called in production, so MCP recall likely stays summary-vector-only and can miss relevant transcript-only matches for users; wire both MCP search routes to this resolver (and add a route-level test) to de-risk the behavior gap.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="backend/utils/conversations/mcp_transcript_search.py">
<violation number="1" location="backend/utils/conversations/mcp_transcript_search.py:189">
P2: MCP transcript recall remains summary-vector-only because this newly added resolver has no production caller, despite its docstring promising combined transcript and summary search. Wire both MCP search routes to the resolver or remove the unused MCP path to avoid presenting this as shared functionality.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| return merge_summary_and_transcript_ids(transcript_ids, [], limit) | ||
|
|
||
|
|
||
| def resolve_mcp_conversation_search_ids( |
There was a problem hiding this comment.
P2: MCP transcript recall remains summary-vector-only because this newly added resolver has no production caller, despite its docstring promising combined transcript and summary search. Wire both MCP search routes to the resolver or remove the unused MCP path to avoid presenting this as shared functionality.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At backend/utils/conversations/mcp_transcript_search.py, line 189:
<comment>MCP transcript recall remains summary-vector-only because this newly added resolver has no production caller, despite its docstring promising combined transcript and summary search. Wire both MCP search routes to the resolver or remove the unused MCP path to avoid presenting this as shared functionality.</comment>
<file context>
@@ -0,0 +1,246 @@
+ return merge_summary_and_transcript_ids(transcript_ids, [], limit)
+
+
+def resolve_mcp_conversation_search_ids(
+ uid: str,
+ query: str,
</file context>
There was a problem hiding this comment.
Kept for shared helpers with #11198 (MCP wiring lands there). This PR production path is POST /v1/conversations/search.
Gate transcript merge to page 1 with over-fetch + post-hydrate date/speaker filters, one-sided chunk date bounds, Unicode snippet tokens, and a search-only ConversationSearchItem so unit stubs and Dart format stay green. Co-authored-by: Cursor <[email protected]>
Update @2406558738Why “Skip” / unchecked looked scary: CI Skipped jobs are path-filtered (Detect Changes → skip unused workflows). Unchecked test-plan boxes are reviewer smokes, not CI skips. The real blockers were Backend Unit Tests + Dart Formatting + cubic P1s. CI root cause: router unit tests stub Cubic:
Local: previously-failed unit files + |
Automate transcript-only snippet + seek times, locked drop/redaction of match_snippets, and Flutter searchMomentSeekFromSnippets; fix search client parsing for ConversationSearchItem after the schema split. Co-authored-by: Cursor <[email protected]>
Test plan completed (automated) @deb654b693
Left unchecked on purpose: physical audio seek smoke (needs kit + chunk index on). |
Record the conversation search router baseline and apply the repository Dart formatter to the seek-from-search page changes. Failure-Class: none Co-authored-by: CommandCodeBot <[email protected]>
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the thoughtful work here — the feature direction is promising, and I like that the PR explicitly preserves locked-conversation redaction for match_snippets.
I can't mark this ready yet because the current head still has merge-blocking validation failures:
Formattingreportsapp/lib/pages/conversation_detail/page.dartwould be changed bydart format --line-length 120.Backend unit suitereports failures intests/unit/test_app_client_dart_generator.pyandtests/unit/test_desktop_rest_inventory.py. From the diff, the search response now intentionally exposesConversationSearchItem, but the existing app-client/desktop contract tests still assertSearchConversationsResponse.itemsisConversation. Please update the generator/desktop contract expectations (or the API shape, if the generated clients are not supposed to see a distinct search item model) so the OpenAPI-generated clients and first-party desktop decoder contract agree.
Because this exposes transcript-derived snippets and seek times through the app-client search API, I'd also like a maintainer/product pass before merge on the privacy/UX boundary: locked rows must continue to suppress snippets, and the app behavior should be acceptable when audio playback is unavailable or the transcript-chunk index is disabled.
Once formatting and the generated-client/desktop contract tests are green, this looks much closer.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
Dart format conversation detail page; update app-client Dart generator and desktop REST inventory expectations for SearchConversationsResponse items as ConversationSearchItem (not bare Conversation). Failure-Class: none Co-authored-by: Cursor <[email protected]>
|
Thanks @Git-on-my-level — merge-blocking items fixed in
Local: those two previously-failing assertions now pass. Privacy / UX boundary (for product pass):
Physical seek-from-search smoke still not run (no kit). Ready for re-pass + privacy/UX glance when you have a moment. |
Repo Formatting check requires black 26.5.1 at line-length 120. Failure-Class: none Co-authored-by: Cursor <[email protected]>
|
one remaining CI miss after Backend unit + Dart format + ConversationSearchItem contracts remain green from the prior tip. Ready for re-pass + privacy/UX glance when CI is green. |
kodjima33
left a comment
There was a problem hiding this comment.
Spoken-moment search + play-on-open — feature, approve only.
Keep find-and-play search tip current for CR dismiss after APPROVE.
Main overwrite reset search item expectations to bare Conversation; restore SearchItem + snippet assertions matching the OpenAPI shape. Co-authored-by: Cursor <[email protected]>
|
@Git-on-my-level need human response — please dismiss the stale CHANGES_REQUESTED on #11205. Author-clear on your blockers:
Privacy/UX (for the product glance you asked for):
Please dismiss CR / re-pass when you can so the APPROVE can clear the merge gate. |
Keep find-and-play search tip current for CR dismiss after APPROVE.
|
Follow-up: tip now correctly on @ Contains: merge of current |
Resolved on current head: formatting is green and the SearchConversationsResponse generated-client/desktop contract expectations now use ConversationSearchItem.
|
Thanks for the follow-up fixes. I re-checked the current head and I’m leaving this as a positive signal rather than a formal automation approval. What I verified:
The current GitHub checks are green, and I also smoke-checked the new pure transcript-search helper behavior locally. I did not find a new blocking issue in the sampled code paths. Because this touches transcript-derived user data and app search UX, I’m relying on the existing human maintainer sign-off for the product/privacy boundary rather than issuing a formal automation approval. by AI on behalf of David — positive signal only; transcript-search privacy/UX has human maintainer sign-off on this head. |
|
@kodjima33 @beastoin need human response — merge call for #11205 (spoken-moment search + play-on-open). Head Author-clear privacy/UX for that glance:
Please merge (or state hold) when ready — retention wow lane. |
|
@kodjima33 @beastoin need human response — merge call for #11205 (spoken-moment search + play-on-open). Author-clear on
Please merge when ready (or state an explicit hold) — retention wow lane. |
|
Follow-up review on the current head/check state: The implementation still looks directionally sound to me, and I’m not adding a blocking review over the existing maintainer approval. I did re-check the main code paths:
Current merge blocker I see is CI, not a new product-code blocker: by AI on behalf of David — follow-up comment only; not a formal approval or merge decision. |
|
Hey @aryanorastar 👋 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:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. 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! |
|
Superseded by clean replacement PR #11400. The implementation was rebased onto current |
|
Hey @aryanorastar 👋 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:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. 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! |
Summary
POST /v1/conversations/searchnow merges optional transcript-chunk vector hits (page 1), attachesmatch_snippets(text + start/end), and the Flutter list shows the hit then opens the transcript tab seeking/playing that moment.Honest gaps
TRANSCRIPT_CHUNK_INDEXING_ENABLED). When off, Typesense-only hits still get snippets if the phrase appears in hydrated segments; pure spoken-word recall needs the chunk index (same as MCP).Test plan
pytest tests/unit/test_mcp_transcript_search.py(+ existing search speaker/date/pagination suites green)match_snippets(API + helpers); FluttersearchMomentSeekFromSnippetsopens transcript tab with start/endmatch_snippetsFailure class (fixes)
Failure-Class: none