Skip to content

[Bug]:agentName参数影响了session/ 文件的目录位置 #2297

Closed

Description

@zygzzp

当 HarnessAgent 的 name 和 agentId 不同时,Session 文件路径无法匹配 RemoteFilesystemSpec里按照workspace的目录前缀注册的远程路由。

比如:
HarnessAgent.builder()
.name("妙妙")
.agentId("127")
.distributedStore(store)
.filesystem(new RemoteFilesystemSpec())
.build();

RemoteFilesystemSpec 使用 agentId 注册路由:agents/store-manager/sessions/

但 MemoryFlushMiddleware 和 CompactionMiddleware 使用String agentId = agent.getName() 构造 Session 路径:

生成的路径 :agents/妙妙/sessions/.jsonl,session文件就无法卸载到远程文件系统里

Activity

  1. added
    bug
    on Jul 19, 2026
  2. allendata0706 commented on Sep 5, 2026

    @allendata0706

    哪个版本解决的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions