Skip to content

Sync Community Edition task evaluation and tool steering - #238

Merged
Luhaozhu merged 2 commits into
mainfrom
sync/ce-20261123-task-evaluation
Nov 27, 2026
Merged

Luhaozhu merged 2 commits into
mainfrom
sync/ce-20261123-task-evaluation

Conversation

@Luhaozhu

@Luhaozhu Luhaozhu commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Purpose and behavior

  • Before: Users could only like or dislike an answer, and queued steering messages could wait for the current tool to finish.
  • After: Users can mark answers as satisfactory, needing revision, or unsatisfactory. They can record reasons, leave a comment, and review outstanding evaluations. A queued steering message can interrupt a running tool that supports cancellation.

Change walkthrough

Risk and compatibility

Verification

  • Evidence: CE derivation passed the runtime file, edition boundary, brand, and license gates. The CE application imported successfully. All 23 focused evaluation, project file-count, and tool-interruption tests passed. The frontend production build passed on Node.js 22.23.2. Git whitespace checks passed.
  • Limits: These focused checks do not cover all runtime and desktop changes carried over from Sync Community Edition runtime and desktop refactor #237. Native cold-start checks are tracked in PR CI. No public deployment was performed.

Recovery

  • Steps: Revert the sync commit and redeploy the prior CE build. Keep the database backup for schema recovery. A migration downgrade removes the new verdict and reason fields, so export any new evaluation records before downgrading.

Review follow-up

Community checklist

@Luhaozhu

Copy link
Copy Markdown
Contributor Author

@codex review

Please include a concise, separate three-part review summary for the current PR head, including when there are no actionable findings:

  1. Functional changes. Name the affected product modules and explain what users or operators can now do, what behavior changes, or what improves. Distinguish the latest task evaluation and tool steering changes from the earlier runtime and desktop changes carried by this cumulative CE PR.
  2. Necessity and scope. Given the existing system, identify which changes address a real requirement, which are optional, and whether any abstraction, refactor, or scope expansion adds unjustified complexity. Explain the evidence and name a smaller adequate approach if applicable.
  3. Cross-module impact. Trace the affected consumers and compatibility boundaries. Check evaluation data and migration, permissions, cancellation, client behavior, and offline desktop where relevant. Identify confirmed regressions, plausible risks, and checks that remain unverified.

Keep actionable findings as inline comments when applicable. Please put the three-part explanation in the review summary rather than creating inline findings just to carry the explanation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T16:00:51.397690Z a5e5893 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 6201c9564d

ℹ️ 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".

Comment on lines +72 to +76
} else if (Date.now() < deadline) {
timer = window.setTimeout(tryFocus, 150);
return;
}
useEvaluationStore.getState().setFocus(null);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Load the target answer before abandoning the evaluation jump

When the latest unrated answer is older than the newest 30 messages—for example, after several subsequent answers have already been rated—the pending-evaluation API still returns it, but chatHistoryLoader.ts initially loads only the newest page. This hook only polls the DOM and clears the focus after four seconds; EvaluationReminder.jump does not load older history either. Consequently, clicking the reminder opens the conversation at the bottom without locating the answer awaiting evaluation. Load history until the target message is available before scrolling, and cover a reminder target outside the first history page in a regression test.

AGENTS.md reference: AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

@Luhaozhu

Copy link
Copy Markdown
Contributor Author

Supplemental functional review

Reviewed CE PR head 6201c95. The cumulative PR includes earlier runtime and desktop changes. The assessment below focuses on the latest task-evaluation and tool-steering changes and their immediate dependencies.

1. Functional changes

  • Chat and task evaluation — Users can mark a completed answer as satisfactory, needing revision, or unsatisfactory, add reasons, and find answers awaiting feedback. Scheduled and looping task answers are excluded from this workflow.
  • Running conversations — Users can redirect a conversation while a compatible tool is still running. The assistant can stop that tool and replan from the new instruction rather than waiting for the tool to finish.
  • Knowledge base, projects, and library views — Moving heavy work out of shared request handling and loading less data in list views is intended to keep unrelated requests responsive. The PR evidence does not establish a measured production speedup.

2. Necessity and scope

The three-way evaluation addresses a limitation of thumbs-up/down: feedback that asks for revision is distinct from rejection. Reusing the existing feedback records and retaining legacy ratings is a proportionate approach. Tool interruption directly addresses the delay when users change instructions during long calls, and limiting it to compatible tools is necessary. The earlier runtime and desktop refactor is a separate review concern. The evaluation workflow does not justify treating every cleanup in the cumulative PR as necessary.

3. Cross-module impact

  • Evaluation reminders and chat history — The evaluation API can return an answer outside the first history page. The reminder currently waits for the card to appear without asking history to load that answer. The inline review documents the resulting navigation defect. The fix should reuse the existing history-loading path and cover the interaction with a regression test. Inline finding
  • Storage and clients — The additive CE migration backfills historical ratings and preserves the old rating field for existing consumers. Verify a database upgraded from an older CE release as well as the current client flow.
  • Tool execution and external effects — Check that cancellation preserves the safeguards for tools that may have already written to an external system. The interruption notification does not establish that an external write was rolled back.

@Luhaozhu
Luhaozhu marked this pull request as ready for review November 27, 2026 15:59
@Luhaozhu
Luhaozhu merged commit fc06bdd into main Nov 27, 2026
6 of 7 checks passed
@Luhaozhu
Luhaozhu deleted the sync/ce-20261123-task-evaluation branch November 30, 2026 06:24
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