Skip to content

Clarify partial research recovery - #96

Merged
2002yy merged 2 commits into
mainfrom
codex/p1-r1-research-stage-explanations
Aug 2, 2026
Merged

Clarify partial research recovery#96
2002yy merged 2 commits into
mainfrom
codex/p1-r1-research-stage-explanations

Conversation

@2002yy

@2002yy 2002yy commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve partial ResearchRun findings without automatically using them in the next chat turn.
  • Explain partial, failed, and cancelled research recovery in chat and group surfaces.
  • Release cached SQLite connections before Windows real-stack resets.

Validation

  • 222 frontend unit tests
  • TypeScript and Vite production build
  • Real-stack research journeys: desktop and 390x844

Full GitHub Actions remains the merge gate.

@2002yy
2002yy marked this pull request as ready for review August 2, 2026 17:35
@2002yy
2002yy merged commit a2eed73 into main Aug 2, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f4ba4b5b0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


function isUsable(response: ResearchLookupResponse): boolean {
return ["completed", "partial"].includes(response.status) && response.news_items.length > 0;
return response.status === "completed" && response.news_items.length > 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Exclude provider-partial runs from automatic chat use

When research retains usable items but any provider or source read fails, WebLookupService sets provider_status to partial, while WebLookupRepository.complete() still sets status to completed; therefore this predicate remains true and silently enables those partial findings for the next chat turn. Conversely, the backend's status === "partial" represents provider_status === "insufficient" and normally has no items, so the new test exercises a payload the production completion path does not produce. Check provider_status here (and in the new partial-result UI branches) so actual partially successful research requires explicit learner confirmation.

Useful? React with 👍 / 👎.

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