Skip to content

Sync Community Edition task evaluation and shared forms - #240

Merged
Luhaozhu merged 3 commits into
mainfrom
sync/ce-20261124-forms-and-review
Nov 27, 2026
Merged

Luhaozhu merged 3 commits into
mainfrom
sync/ce-20261124-forms-and-review

Conversation

@Luhaozhu

@Luhaozhu Luhaozhu commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Purpose and behavior

  • Before: Public main includes the runtime and desktop refactor from Sync Community Edition runtime and desktop refactor #237. It still lacks chat task evaluation, mid-tool steering, the latest shared forms, and collision-safe generated filenames.
  • After: Community Edition shows evaluation cards and a reminder near the composer, accepts steering during supported tool execution, uses the shared responsive form layout, and gives generated personal-space files numbered names when a filename is already taken.

Change walkthrough

  • Flow: Evaluation runs through src/backend/api/routes/v1/chats/evaluations.py and src/backend/core/chat/evaluation.py to the chat evaluation card and reminder. Mid-tool steering uses src/backend/core/llm/runtime/tool_interrupt.py. Generated artifacts pass through src/backend/core/files/artifacts/service.py and the personal naming policy in src/backend/core/files/edition.py. Shared forms use src/frontend/src/components/common/FormLayout.tsx.
  • Decisions: Derive the public tree from the upstream Community Edition pipeline. Public main advanced by merging the earlier runtime snapshot in Sync Community Edition runtime and desktop refactor #237. The merge resolution keeps that history and the already-validated newer generated tree. The remaining diff includes the overlap with Sync Community Edition task evaluation and tool steering #238. Enterprise knowledge grants and administrative user editing stay outside the Community Edition tree.

Risk and compatibility

  • Risk: high
  • Boundaries: The remaining diff affects chat state, tool interruption, the evaluation schema, artifact naming, and shared frontend forms. Community Edition retains personal file ownership and excludes Enterprise modules and schema.
  • Human review: A Community maintainer should reconcile the overlap with Sync Community Edition task evaluation and tool steering #238 and review evaluation schema upgrades, supported steering interruption, and compatibility with older sessions.

Verification

  • Evidence: The release derivation passed the CE runtime-file, forbidden-file, binary whitelist, brand, license, and isolated Python import/OpenAPI/ORM gates. The frontend build, 26 focused Community backend tests, and all 19 PR walkthrough script tests passed. All four platform jobs passed on the previous head. The merge has an identical Git tree and the diff against the new public base passes the whitespace check.
  • Limits: Production data upgrades and an interactive upgrade from an installed Community client were outside these checks.

Recovery

  • Steps: Close the PR or continue with the earlier sync if one aggregate is undesirable. After a merge, revert the application code if needed. Review the evaluation migration and preserve existing responses before any database downgrade.

Review follow-up

Community checklist

  • Maintainer sync generated from the Community Edition pipeline.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T09:02:24.419550Z 5b0477e PR opened
ℹ️ 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: 5b0477e1bf

ℹ️ 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 +65 to +67
async def write_local_bytes(path: str, data: bytes) -> None:
"""Write a host file, creating its parent folders, in a worker thread."""
await asyncio.to_thread(_write_bytes, path, data)

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 Finish host-file writes before propagating cancellation

In desktop local mode, stopping or steering a tool while this await is pending cancels the coroutine but does not stop the _write_bytes worker thread. Both Write and Edit consequently release file_mutation_lock(physical) while the old write is still running, allowing a replacement operation to acquire the lock and modify the same file. The cancelled write can then overwrite the newer content; reproducing this with a delayed worker left old on disk after the replacement write had successfully saved new. Wait for the worker write to finish before propagating cancellation and releasing the mutation lock, and cover cancellation followed by another write in a regression test.

Useful? React with 👍 / 👎.

@Luhaozhu Luhaozhu changed the title Sync Community Edition runtime, task evaluation, and shared forms Sync Community Edition task evaluation and shared forms Nov 24, 2026
@Luhaozhu
Luhaozhu merged commit 51ca1e0 into main Nov 27, 2026
6 checks passed
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