agentscope-ai / agentscope-ai/agentscope-java

[Bug]: `builder.workspace-store.fs-spec` config property documented but never implemented

Đang mở
#1,723 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area/examples bug
Ngôn ngữ chính
Java
Star
5.6k
Fork
1.3k
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
77

Mô tả

## Bug Report

### 现象
配置 `builder.workspace-store.fs-spec=local`(或环境变量 `BUILDER_WORKSPACE_FS_SPEC=local`)后启动,应用仍然报错:
```
filesystem(RemoteFilesystemSpec) is designed for distributed / multi-replica deployments,
but the effective AgentStateStore is a local in-process implementation (InMemoryAgentStateStore).
```

### 根因
`BuilderConfig.java` 的 `builderBootstrap()` 方法中,`configureAllAgents` lambda 硬编码了 `RemoteFilesystemSpec`:

agentscope-examples/agents/agentscope-builder/src/main/java/io/agentscope/builder/web/config/BuilderConfig.java#L220-L224

```java
b.filesystem(
new RemoteFilesystemSpec(baseStore)
.isolationScope(IsolationScope.USER)
.addSharedPrefix("activity/"));
```

而配置属性 `builder.workspace-store.fs-spec` **在任何 Java 源码中均未被读取**(全仓搜索零结果,仅在 README 中有文档)。

### 预期行为
`builder.workspace-store.fs-spec` 应被读取并按值切换:
- `local` → `new LocalFilesystemSpec()`
- `sandbox` / `remote` → `new RemoteFilesystemSpec(baseStore)`

### 修复方向
在 `BuilderConfig.java` 中注入该属性,按值分支选择 `LocalFilesystemSpec` 或 `RemoteFilesystemSpec`。

### 受影响版本
`agentscope-builder-2.0.0-SNAPSHOT`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.