Repository navigation
Conversation
- findRecordPath 拼接 ls 目录条目时剥离尾部斜杠:RemoteFilesystem 的 目录条目带尾部 '/',原样拼接产生 '<session>//<id>.json', normalizePath 不清内部双斜杠,complete/fail/markTimeout 全部静默 no-op - 不改 RemoteFilesystem.ls 的尾部斜杠契约(其他调用方依赖目录标记) - 回归:RemoteFilesystem + InMemoryStore 后端上 complete/markTimeout 必须真实更新记录
aiyili
added a commit
to aiyili/agentscope-java
that referenced
this pull request
Nov 15, 2026
The ubuntu job failed on RocketMqExecutionTest.agentScopeResumesThroughSeparateLedgersDespitePublicationAndAckFailures (polling deadline 'Condition did not become true', 10s await under CI load). The test lives in the durable-rocketmq extension, references no HarnessAgent API, and passed on the sibling PR runs (agentscope-ai#4194/agentscope-ai#4196) minutes earlier — a timing flake, not a regression from this diff. Re-triggering CI.
This branch has not been deployed
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.
Summary
The by-id terminal updates on
WorkspaceAsyncToolRegistry—complete(id, ...),fail(id, ...),markTimeout(id)— are silent no-ops when the backing filesystem is aRemoteFilesystem.Root cause chain (as reported, verified at main
a4306d63):RemoteFilesystem.ls()emits directory entries with a trailing slash (both the index fast path and the store fallback — that slash is the dir/file marker).findRecordPathconcatenatessessionDir.path() + "/" + id + ".json"onto a path that already ends in/, producing<root>/<session>//<id>.json.RemoteFilesystem.normalizePathonly ensures a leading slash and strips one trailing slash — the interior//survives, no key matches,findRecordPathreturnsnull, and the update silently does nothing.registerwrites the record to the clean path (recordPath()), so the mismatch is purely on the lookup side. The local backend never surfaced this because its ls entries carry no trailing slash — the existing test suite is exclusively local-fs.Fix
Normalize the composed record path at the registry boundary (strip trailing slashes from the ls-derived directory entry before joining) instead of changing
RemoteFilesystem.ls()'s trailing-slash contract, which other callers may rely on for directory detection.Regression
byIdTerminalUpdatesReachRecordsOnRemoteBackends: registry overRemoteFilesystem+InMemoryStore—completeandmarkTimeoutmust actually update the record (observable viafindStale), which today silently no-ops.Full harness module suite green on the merged batch state (1833/1833).