Skip to content

[bugfix] agent: keep project writes authorized during a turn - #494

Merged
FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/agent-project-write-session
Nov 24, 2026
Merged

FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/agent-project-write-session

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

  • Give each accepted Agent turn a server-renewed project write lease so the turn can save after the canvas closes or its session expires.
  • Release the lease when the turn ends and keep project path, lock and revision checks in the shared write path.

Linked issue

  • No linked issue applies.

Labels

  • type:bug and area:agent

Test plan

  • Local: 187 tests passed across assistant conversations, the creation API, project storage, assets, DeepSeek runtime and Agent job lineage. Import boundaries and git diff --check passed.
  • Local: Reproduced the rejected write on upstream main. Ran the close-and-detach regression with the default 60-second lease and verified that the turn saved the prompt and persisted a result asset after waiting past the lease. A reopened canvas edit produced a revision conflict on the stale Agent write and preserved the user's change.
  • Left to CI: Standard repository checks.

Evidence that it works

  • N/A for screenshots. This is a backend lifecycle fix. The regression tests exercise the Agent tool gateway, server session endpoints and persisted project state.

Provider verification

  • The model output was simulated. No real generation provider or full video assembly run was used.

Bilingual UI

  • No user-facing copy changed.

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
@FayeSpica FayeSpica added type:bug Something is broken area:agent Agent runtime, assistant chat and tools labels Nov 24, 2026
@github-actions
github-actions Bot requested a review from wuzhf9 November 24, 2026 13:26
@FayeSpica
FayeSpica merged commit 6edc736 into ThinkFlowLab:main Nov 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent runtime, assistant chat and tools type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant