Skip to content

[Bug]:HarnessAgent的agentName 参数 影响远程问价系统的session卸载 #2298

Description

@zygzzp

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

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

RemoteFilesystemSpec 使用 agentId 注册路由:agents/127/sessions/

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/harnessagentscope-harness (test/runtime support)bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions