Skip to content

refactor(headless): route Harbor CLI connection reading through shared authorities - #2102

Merged
Astro-Han merged 5 commits into
apache:mainfrom
chinawch007:refactor/move-workspace-root-to-storage
Aug 8, 2026
Merged

Astro-Han merged 5 commits into
apache:mainfrom
chinawch007:refactor/move-workspace-root-to-storage

Conversation

@chinawch007

@chinawch007 chinawch007 commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves the headless / harbor-cli.ts connection reading slice of #1404.

harbor-cli.ts re-derived two things that already had authoritative implementations elsewhere: the per-platform workspace path and the llm-connections.json schema/parse. Both copies had already drifted from their authorities. This PR routes both through the shared authorities so harbor-cli becomes a consumer rather than a second implementer.

Two commits, one per duplication point:

Commit 1 — move the workspace-path authority to @maka/storage

harbor-cli.resolveDefaultConnectionsPath() hand-rolled the same darwin/win32/linux application-data path that resolveMakaWorkspaceRoot() (in packages/cli) already computed — and had drifted: the harbor copy used posix path.join on all platforms, while the authority correctly uses win32 joining on Windows.

  • Moved resolveMakaWorkspaceRoot to @maka/storage, next to createConnectionStore — the path authority and the connection reader now share one home (matching refactor: third-pass sink-file and boundary governance #1404's "shared workspace-path + connection reader / ConnectionStore authority").
  • harbor-cli now resolves the workspace path via the shared resolver instead of re-deriving the platform branches. This also fixes a latent win32 path-separator bug (posix join → win32 join).
  • packages/cli/src/workspace-root.ts becomes a re-export shim so its consumers keep working with no edits. That's four consumers, not three: the three relative importers (cli.ts, inspect-command.ts, run-command.ts) plus packages/cli/src/index.ts, which re-exports it as @maka/cli's public API — so the shim now carries the published surface, not just internal reuse.

Commit 2 — route applyConnectionDefaults through ConnectionStore

applyConnectionDefaults re-parsed llm-connections.json with its own inline schema (JSON.parse + a hand-written type cast + find() + a manual normalizeProviderType call), bypassing the ConnectionStore authority it claimed to mirror. The old code's own comment flagged this: "applyConnectionDefaults reads llm-connections.json directly, bypassing ConnectionStore's on-read normalization."

  • Reads the default connection via createConnectionStore(root).getDefault() / get(slug) instead of the inline schema. The store owns the file shape, the v1→v2 migration (which normalizes legacy providerType ids like codex-subscription → openai-codex on read), and the default-slug selection rules.
  • Dropped the redundant normalizeProviderType(conn.providerType) call — the store's migrateConnectionV1ToV2 already normalizes on read, so the manual patch is no longer needed.
  • Made the function async (the ConnectionStore API is async-backed); await-ed it at the one production call site and the direct test call sites.
  • Preserved the silent-fallback behavior: a try/catch ensures a missing or malformed file still falls through to hardcoded defaults (the store swallows ENOENT but re-throws malformed JSON).
  • Removed the now-dead resolveDefaultConnectionsPath — after routing through the store it had zero callers.

MAKA_CONNECTIONS_PATH is now a directory, not a file path

Previously the env var pointed at the connections file and harbor read it verbatim. Routing through createConnectionStore(root) requires the workspace root directory (the store joins llm-connections.json onto it internally), so a non-standard basename is now intentionally ignored. This is pinned by a new test (MAKA_CONNECTIONS_PATH is a directory: a non-standard filename is ignored) that drops a decoy custom.json and asserts the real llm-connections.json wins. In practice every caller (production via resolveMakaWorkspaceRoot, tests via makeTempConnections) already used the standard filename, so the impact is nil — but the semantics are now explicit and locked.

Inherited behavior changes (please flag in review)

Because harbor now inherits the store's read path in full, two behaviors shift relative to the old inline reader. Both are consequences of "stop being a shadow implementation"; neither is a regression in the safe-fallback contract, but they are real semantic changes worth naming:

  • A single un-migratable entry can now lose the whole default. The store's readUnlocked runs every connection through migrateConnectionV1ToV2, which throws on an entry with no slug or an unrecognized backend; that exception propagates out of getDefault() into harbor's catch, so a perfectly good default is silently dropped merely because an unrelated stale entry sits in the same file. The old inline reader only looked at the default entry and never touched the others. Tracking the store-layer fix (skip bad entries instead of throwing the whole read) as a follow-up — out of scope for this slice, since changing the store's fault tolerance affects every read/write path in the app.
  • A v1 entry with no providerType is now synthesized rather than skipped. The old code's if (!conn.providerType) return; skipped such entries; the store's migrateConnectionV1ToV2 synthesizes providerType: 'anthropic' for a backend === 'claude' v1 entry. As a result harbor may now set MAKA_MODEL for a connection it previously ignored. This looks like a fix (aligns with modern semantics), and is intentional — but calling it out so it's a deliberate decision, not a surprise.

Validation

  • npm run format:check
  • npm run lint
  • npm run typecheck (packages/headless) — passed, 0 errors
  • npm --workspace @maka/headless run build — passed
  • npm --workspace @maka/headless run test:dist --1339 passed, 5 skipped

@jackwener

Copy link
Copy Markdown
Member

Review by maka-审美专家 — request changes(重构方向正确,win32 posix.join 修复也是真修复,但有两处与 PR 描述「行为保留」不符的静默偏差):

1. 阻塞:MAKA_CONNECTIONS_PATH 的文件名部分被静默忽略。 新代码取 dirname(env.MAKA_CONNECTIONS_PATH) 传给 createConnectionStore,而 store 在 connection-store.ts:43 硬编码 join(root, 'llm-connections.json')。旧代码按给定的完整路径读。于是 MAKA_CONNECTIONS_PATH=/x/custom.json 现在实际读 /x/llm-connections.json。现有测试没抓到只是因为 makeTempConnections 恰好总写 llm-connections.json。二选一:尊重 basename,或把 env var 语义改为「包含 llm-connections.json 的目录」并更新文档/注释 + 加一条 custom 文件名的测试钉住选择。

2. 应修或至少声明:一条无法迁移的陈旧 entry 会拖垮整个 default。 store 的 readUnlocked 把每条 connection 过 migrateConnectionV1ToV2(无 slug 或 backend 非法即 throw,llm-connections.ts:527,572),异常传出 getDefault() 进 harbor 的 catch——default entry 本身完好、只因文件里躺着一条无关坏记录就静默丢失 defaults。旧代码只看 default entry。至少在 PR 描述里声明这个语义变化,最好在 store 层跳过坏 entry 而不是整体抛。

3. 顺带清理:resolveDefaultConnectionsPath 在本 PR 后零调用者,属死代码,删掉或注明保留原因。4. PR 描述更正:resolveMakaWorkspaceRoot 的消费者是 4 处不是 3 处——packages/cli/src/index.ts:50 还把它 re-export 成 @maka/cli 公共 API,shim 现在承载发布面。5. 说明即可:v1 无 providerType 的 entry 旧代码跳过、新 store 会合成 anthropic 默认值,headless 因此可能开始设置 MAKA_MODEL——看起来是修复,但请在描述里写明是有意的。

改完我复审合入。

@chinawch007

Copy link
Copy Markdown
Contributor Author

感谢详细的 review,意见很到位。逐一回应:

1. MAKA_CONNECTIONS_PATH 的 basename 被静默忽略
确实是个 bug,旧测试因为总用标准文件名所以没抓到。采用了你建议的后一种方案:把 MAKA_CONNECTIONS_PATH 的语义明确为「workspace 目录」(而非文件路径),store 内部 join llm-connections.json。新增了一条测试 MAKA_CONNECTIONS_PATH is a directory: a non-standard filename is ignored,往目录里放一个 decoy custom.json,断言读到的是真正的 llm-connections.json——这样把「目录语义」这个选择钉死,防止日后悄悄漂回旧的文件路径语义。历史上所有调用方(生产用 resolveMakaWorkspaceRoot、测试用标准文件名)都不受影响。

2. 一条无法迁移的坏 entry 拖垮整个 default
认同这是真实的语义变化。本 PR 不动 store 层的容错策略(改 readUnlocked 影响面太大,波及桌面端所有读写路径,超出这个 slice 的范围)。已在 PR 描述的「Inherited behavior changes」一节明确声明了这点,store 层「跳过坏 entry 而非整体抛」的改进我会单开 issue 跟踪。

3. resolveDefaultConnectionsPath 死代码
已删除。commit 2 路由到 store 后它确实零调用者,保留就是死代码。

4. PR 描述消费者数写错
已更正。是 4 处不是 3 处——packages/cli/src/index.ts 还把它 re-export 成 @maka/cli 的公共 API,shim 现在承载的是发布面,描述里已点明。

5. v1 无 providerType 的 entry 旧代码跳过、新 store 会合成 anthropic
认同。这是「对齐权威实现」带来的结果——旧影子实现因为不完整反而跳过了这类 entry,store 的 migrateConnectionV1ToV2 会为 backend === 'claude' 的 v1 entry 合成 anthropic。看起来是修复(更符合现代语义),已在 PR 描述中写明是有意为之,不是意外。

全部改动见最新 commit。再次感谢。

@chinawch007 chinawch007 changed the title Refactor(headless): route harbor-cli connection reading through shared authorities Refactor(headless): route harbor-cli connection reading through shared authorities(#1404) Aug 4, 2026
@Astro-Han

Copy link
Copy Markdown
Contributor

Thanks for moving Harbor onto the shared workspace and ConnectionStore authorities. Removing the inline path logic and JSON parser is the right direction. I found three issues in how the shared store is consumed.

P1: MAKA_CONNECTIONS_PATH changes from a file path to a directory

Before this PR, Harbor reads MAKA_CONNECTIONS_PATH as the complete connections file path. The new implementation passes it directly to createConnectionStore(), which appends llm-connections.json internally:

https://github.com/maka-agent/maka-agent/blob/4c7f9f90a275ec551a74706965a9785450d3a7af/packages/headless/src/harbor-cli.ts#L852-L858

An existing value such as:

MAKA_CONNECTIONS_PATH=/tmp/workspace/llm-connections.json

will therefore be resolved as:

/tmp/workspace/llm-connections.json/llm-connections.json

The resulting error is swallowed by the catch block, so Harbor silently falls back without the configured model or credentials.

The new test at harbor-cli-connection-defaults.test.ts:203 does not preserve compatibility. It locks in the new directory semantics. I think the existing file-path contract should remain valid. If the store needs a root directory, it could accept an explicit file path through another constructor, or a separately named workspace-root environment variable could be added without changing the meaning of the existing one.

P2: The default slug and connection come from two different snapshots

The new implementation performs two independent reads:

const slug = await store.getDefault();
const conn = await store.get(slug);

https://github.com/maka-agent/maka-agent/blob/4c7f9f90a275ec551a74706965a9785450d3a7af/packages/headless/src/harbor-cli.ts#L860-L865

Each method reads the file again. A concurrent atomic update can produce this sequence:

  1. The first read returns default A.
  2. Desktop writes default B and removes A.
  3. The second read returns no connection for A.

Both the old and new complete snapshots contain a valid default, but Harbor sees neither and silently falls back.

The store should expose a single-snapshot operation such as:

getDefaultConnection(): Promise<LlmConnection | null>

That keeps the default slug and connection resolution inside the authority that owns the file.

P2: An unrelated invalid entry can silently disable a valid default

ConnectionStore migrates every connection during a read:

https://github.com/maka-agent/maka-agent/blob/b7ad0922b754f4c0083f10ca0358fe0a48515c1b/packages/storage/src/connection-store.ts#L364-L377

A record without a slug or with an unknown legacy backend throws during migration:

https://github.com/maka-agent/maka-agent/blob/b7ad0922b754f4c0083f10ca0358fe0a48515c1b/packages/core/src/llm-connections.ts#L539-L587

This means a valid default A plus an unrelated stale entry B causes the entire read to fail. Harbor catches that error and behaves as if no configured default exists.

I would not solve this by restoring a Harbor-specific parser or by skipping invalid entries locally. Storage currently has a deliberate fail-closed contract for invalid connection files. The missing piece is an explicit authority decision:

  • Either add a read-only default-resolution operation whose contract permits ignoring unrelated invalid entries.
  • Or preserve fail-closed behavior and surface the invalid configuration instead of silently switching Harbor to hardcoded defaults.

The current combination, where Storage rejects the file and Harbor hides the rejection, can run a different model from the one the user configured.

The v1 migration that synthesizes providerType for an otherwise valid legacy Claude connection looks correct and should remain. After addressing the three issues above, this PR would keep the intended authority consolidation without changing existing configuration contracts.

简体中文

感谢你把 Harbor 收敛到共享的 workspace path 和 ConnectionStore authority。删除内联路径逻辑和 JSON parser 的方向是对的,但当前使用共享 Store 的方式还有三个问题。

P1:MAKA_CONNECTIONS_PATH 从文件路径变成了目录

本 PR 之前,Harbor 将 MAKA_CONNECTIONS_PATH 作为完整的连接文件路径读取。新实现把它直接传给 createConnectionStore(),而 Store 会在内部追加 llm-connections.json:

https://github.com/maka-agent/maka-agent/blob/4c7f9f90a275ec551a74706965a9785450d3a7af/packages/headless/src/harbor-cli.ts#L852-L858

现有配置:

MAKA_CONNECTIONS_PATH=/tmp/workspace/llm-connections.json

会被解析为:

/tmp/workspace/llm-connections.json/llm-connections.json

随后异常被 catch 吞掉,Harbor 会在没有配置模型或凭据的情况下静默 fallback。

harbor-cli-connection-defaults.test.ts:203 新增的测试没有保持兼容性,而是在锁定新的目录语义。我认为应该继续支持现有文件路径契约。如果 Store 必须接收 root directory,可以增加显式 file-path 构造入口;或者新增一个名称不同的 workspace-root 环境变量,而不是改变旧变量的含义。

P2:default slug 和 connection 来自两个不同快照

新实现进行了两次独立读取:

const slug = await store.getDefault();
const conn = await store.get(slug);

https://github.com/maka-agent/maka-agent/blob/4c7f9f90a275ec551a74706965a9785450d3a7af/packages/headless/src/harbor-cli.ts#L860-L865

每个方法都会重新读取文件。并发的原子更新可能产生以下顺序:

  1. 第一次读取返回 default A。
  2. Desktop 写入 default B 并删除 A。
  3. 第二次读取找不到 A。

更新前后的完整快照都有有效 default,但 Harbor 最终看不到任何 default,并静默 fallback。

Store 应提供单快照操作,例如:

getDefaultConnection(): Promise<LlmConnection | null>

default slug 与 connection 的解析应留在持有文件 authority 的 Store 内。

P2:无关的坏记录会让有效 default 静默失效

ConnectionStore 会在读取时迁移所有连接:

https://github.com/maka-agent/maka-agent/blob/b7ad0922b754f4c0083f10ca0358fe0a48515c1b/packages/storage/src/connection-store.ts#L364-L377

缺少 slug 或带有未知 legacy backend 的记录会在迁移时抛错:

https://github.com/maka-agent/maka-agent/blob/b7ad0922b754f4c0083f10ca0358fe0a48515c1b/packages/core/src/llm-connections.ts#L539-L587

因此,一个有效的 default A 加上一条无关的 stale entry B,就会让整个读取失败。Harbor 再把异常吞掉,最终表现为没有配置 default。

这里不应该恢复 Harbor 自己的 parser,也不应该在 Harbor 层跳过坏 entry。Storage 当前对无效连接文件有明确的 fail-closed 契约,缺少的是清晰的 authority 决策:

  • 增加只读 default-resolution API,并明确允许忽略无关坏 entry。
  • 或保留 fail-closed,但把配置错误暴露出来,而不是静默切换到 hardcoded default。

当前“Storage 拒绝文件,Harbor 隐藏错误”的组合,可能让 Harbor 运行一个不同于用户配置的模型。

对于其他有效的 legacy Claude 连接,由 v1 migration 补充 providerType 是合理行为,应该保留。修复以上三个问题后,这个 PR 可以在不破坏现有配置契约的前提下完成 authority 收敛。

Resolve the first of two duplication points flagged in apache#1404
(harbor-cli.ts connection reading): harbor-cli hand-rolled the same
per-platform application-data path that resolveMakaWorkspaceRoot already
computes, and had drifted (posix join on win32).

- Move resolveMakaWorkspaceRoot to @maka/storage, next to
  createConnectionStore — the path authority and the connection reader
  share one home (apache#1404: "shared workspace-path + connection reader /
  ConnectionStore authority").
- harbor-cli.resolveDefaultConnectionsPath now delegates to the shared
  resolver instead of re-deriving darwin/win32/linux branches. This also
  fixes a latent win32 bug: the authority uses win32 path joining, the
  old copy used posix join unconditionally.
- cli's workspace-root.ts becomes a re-export shim so the three relative
  importers (cli.ts, inspect-command.ts, run-command.ts) need no edits;
  its test moves to storage with the source.

Behavior-neutral: pure file move + path delegation. The second
duplication point (applyConnectionDefaults inline schema/ConnectionStore
routing) is a follow-up commit.
…tore

Resolve the second duplication point flagged in apache#1404 (harbor-cli.ts
connection reading): applyConnectionDefaults re-parsed llm-connections.json
with its own inline schema + find() + normalizeProviderType, bypassing
the ConnectionStore authority it claimed to mirror.

- Read the default connection via createConnectionStore(root).getDefault()
  / get(slug) instead of JSON.parse + a hand-written inline schema. The
  store owns the file shape, the v1->v2 migration (which normalizes legacy
  providerType ids like codex-subscription -> openai-codex on read), and
  the default-slug selection rules.
- Drop the redundant normalizeProviderType(conn.providerType) call - the
  store's migrateConnectionV1ToV2 already normalizes on read (the drift
  this fixes; the old code's own comment flagged it as "bypassing
  ConnectionStore's on-read normalization").
- Make the function async (ConnectionStore is async-backed); await it at
  the one production call site and the seven direct test call sites.
- Keep a try/catch so a missing or malformed file still falls through to
  hardcoded defaults (the store swallows ENOENT but re-throws malformed
  JSON). MAKA_CONNECTIONS_PATH override + credentials-path derivation are
  preserved.

Behavior-neutral: all env side effects (MAKA_MODEL, MAKA_LLM_CONNECTION_SLUG,
MAKA_BASE_URL, MAKA_CREDENTIALS_PATH) are identical to before. The 22
harbor-cli-connection-defaults tests stay green, including malformed-JSON
silent fallback and codex-subscription normalization.
Two follow-ups from review on the ConnectionStore routing:

- Make MAKA_CONNECTIONS_PATH a directory, not a file path. The store takes
  the workspace ROOT and joins 'llm-connections.json' internally, so
  dirname()-ing the env var was silently dropping a non-standard basename
  (a latent bug the old inline readFileSync did not have). The env var now
  IS the directory; a non-standard filename is intentionally ignored, pinned
  by a new test that drops a decoy custom.json and asserts the real
  llm-connections.json wins. makeTempConnections now returns the dir.
- Remove the dead resolveDefaultConnectionsPath — after routing through the
  store it had zero callers.

No behavior change for any existing caller: production resolves the path
via resolveMakaWorkspaceRoot (a directory), and tests use the standard
filename. The 23 connection-defaults tests stay green.
P1 from review: the previous commit changed MAKA_CONNECTIONS_PATH from a
file path to a workspace directory, breaking the existing contract. A value
like /tmp/workspace/llm-connections.json would be resolved as
/tmp/workspace/llm-connections.json/llm-connections.json (ENOENT, swallowed
by the catch), silently running a different model from the one configured.

- Add createConnectionStoreForFile(filePath) to @maka/storage so the store
  authority can be constructed from a full file path, not just a workspace
  root. The constructor gains an optional explicitPath override; existing
  createConnectionStore(root) and all its callers are unchanged.
- harbor honors MAKA_CONNECTIONS_PATH as the connections FILE path again
  (any filename verbatim), falling back to the shared workspace-path
  authority joined with the standard filename when unset.
- Revert the directory-semantics test into its opposite: the env var now
  points at custom.json directly, and the decoy llm-connections.json is the
  file that must be ignored — pinning the file-path contract.

The 23 connection-defaults tests stay green.
P2 + P3 from review. harbor read the default connection in two independent
calls (store.getDefault() then store.get(slug)), each re-reading the file; a
concurrent write between them could return a default slug whose connection no
longer exists (TOCTOU). Separately, store.readUnlocked runs every connection
through migrateConnectionV1ToV2 via .map(), so a single un-migratable stale
entry throws the whole read, and harbor's catch silently falls back to
hardcoded defaults — potentially running a different model than configured.

- Add ConnectionStore.getDefaultConnection(): single-snapshot default
  resolution. One read yields {defaultSlug, connections}; the slug lookup and
  the connection lookup both happen on that in-memory snapshot, so a write
  between them can no longer tear the result (P2).
- Add a private readDefaultSnapshot() with a deliberately different fault
  contract: an entry that fails migration is DROPPED, not thrown. readUnlocked
  (used by every write path) stays fail-closed so a corrupt file never feeds a
  write; only the read-only default-resolution path tolerates an unrelated bad
  entry (P3). The default entry itself must still migrate cleanly.
- harbor now calls store.getDefaultConnection() once, dropping the two-step
  getDefault + get sequence.

storage connection-store tests: 37 (3 new — single snapshot, no-default null,
bad-entry tolerance). headless harbor-cli-connection-defaults tests: 24
(1 new — unrelated invalid entry does not strand a valid default).
@chinawch007
chinawch007 force-pushed the refactor/move-workspace-root-to-storage branch from 33fa7ca to 78bf153 Compare August 8, 2026 06:47
@chinawch007

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough review — all three points were correct, and the silent-model-swap framing made the severity clear. Pushed two follow-up commits addressing each.

P1 — MAKA_CONNECTIONS_PATH file-path contract restored

You were right that changing the env var to a directory was a regression: MAKA_CONNECTIONS_PATH=/tmp/workspace/llm-connections.json resolved to /tmp/workspace/llm-connections.json/llm-connections.json, ENOENT was swallowed, and harbor silently ran the hardcoded default. The directory-semantics test I added locked in the wrong behavior rather than preserving compatibility.

Reverted to the file-path contract. Rather than dirname()-ing into the existing root-based constructor, I added createConnectionStoreForFile(filePath) to the store (62778458). The FileConnectionStore constructor now takes an optional explicitPath, so the store authority accepts a full file path directly — no basename is dropped, and any filename is honored verbatim. The existing createConnectionStore(root) and all its callers are unchanged.

The earlier "directory semantics" test is replaced by its opposite: MAKA_CONNECTIONS_PATH now points at a custom.json directly, and a decoy llm-connections.json next to it is the file that must be ignored — pinning the file-path contract so it can't silently revert.

P2 — single-snapshot default resolution (TOCTOU)

getDefault() + get(slug) each re-read the file, so a concurrent write between them could return a default slug whose connection no longer exists. Fixed by moving the slug → connection resolution inside the store.

Added ConnectionStore.getDefaultConnection(): Promise<LlmConnection | null> (33fa7ca5). One read yields a single { defaultSlug, connections } snapshot; both the slug lookup and the connection lookup happen on that in-memory snapshot. harbor now calls it once, dropping the two-step sequence entirely.

P2 — unrelated invalid entry no longer strands a valid default

You correctly noted the real fix belongs at the authority layer, not in harbor's catch block or a local skip. readUnlocked migrates every connection via .map(), so one un-migratable entry (no slug / unknown backend) throws the whole read, and harbor's catch hid it — potentially running a different model than configured.

Added a private readDefaultSnapshot() with a deliberately different fault contract: an entry that fails migrateConnectionV1ToV2 is dropped, not thrown. This is the explicit authority decision you asked for — readUnlocked (used by every write path) stays fail-closed so a corrupt file never feeds a write; only the read-only default-resolution path tolerates an unrelated bad entry. The default entry itself must still migrate cleanly; only then is there genuinely no usable default.

getDefaultConnection() uses this path, so a valid default plus an unrelated stale entry now resolves correctly. New tests cover it at both layers: storage connection-store.test.ts (bad entry dropped, valid default still resolved) and headless harbor-cli-connection-defaults.test.ts (end-to-end: valid default + { backend: 'totally-unknown-legacy-backend' } no longer falls back).

The v1 migration synthesizing providerType is left as-is, as you noted it should be.

@Astro-Han Astro-Han changed the title Refactor(headless): route harbor-cli connection reading through shared authorities(#1404) refactor(headless): route Harbor CLI connection reading through shared authorities Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants