Repository navigation
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
juruoO-o
approved these changes
Nov 11, 2026
juruoO-o
left a comment
Collaborator
There was a problem hiding this comment.
缓存键按实际任务存储 namespace、sessionId 和 taskId 组合,查询、列表、取消、远程恢复及维护路径保持一致;显式共享工作区的行为得以保留,持久化格式不变。针对当前 head 与 main 的合并结果,先前本地 WorkspaceTaskRepositoryNamespaceTest 14 项全部通过。本轮复核 head 未变,未发现阻塞问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AgentScope-Java Version
2.1.0-SNAPSHOT
Description
When users a and b shared a task repository and used the same parent session ID,
b could look up or cancel a's background task if b knew its task ID. The workspace
kept their persisted records separate, but the local cache only checked the
session ID and task ID.
This change includes the task storage namespace in the local cache key. Task
lookup, cancellation, recovery, and maintenance now follow the same isolation
rules as the stored records. Workspaces configured to share tasks still do so.
Added regression tests for cross-user lookup and cancellation, shared workspaces,
anonymous users, and remote task recovery.
To run the focused tests:
mvn -pl agentscope-harness -am "-Dtest=WorkspaceTaskRepository*Test" "-Dsurefire.failIfNoSpecifiedTests=false" testChecklist
Please check the following items before code is ready to be reviewed.
mvn spotless:applymvn test)