makecindy / makecindy/cindy

Maker 插件在多工作区会话中固定使用对话目录,无法构建已选项目

Open
#3,680 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 方 方
**客户端版本**: 0.1.69

---

## 现象

在一个会话同时包含会话目录与已绑定的 Maker 项目目录时,TapTap Maker 插件始终把会话目录作为 `session_context.workdir`,无法识别已附加并被用户选中的 Maker 项目根目录。

## 复现步骤

1. 在 Cindy 会话中附加一个已绑定的 Maker 项目目录;该目录内存在 `.maker-mcp/config.json`。
2. 将该项目目录设为活动工作区并再次调用 `maker_status`。
3. 结果仍显示当前目标是对话/会话目录、`project_id` 为空、缺少 Maker 配置。
4. 即使调用方额外传入明确的项目目录参数,插件包装层仍使用宿主注入的 `session_context.workdir`。

## 期望行为

插件应使用用户当前选择的 Maker 项目根目录;当会话存在多个 Roots 时,应能选择唯一的已绑定 Maker 根目录,或提供安全的显式目录选择机制。

## 实际行为

插件固定使用会话目录,导致官方状态检查、提交、构建和预览全部无法进行。项目本身的 Maker 配置存在且本地 Lua 诊断正常。

## 复现频率

当前会话每次均可复现,多次重新选择/附加工作区后仍然如此。

## 已尝试

- 重新附加并选择 Maker 项目根目录。
- 使用完整状态诊断。
- 传入显式目标目录参数。
- 本地确认项目配置文件和 Git 仓库均存在。

以上均未改变插件收到的工作目录。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19044)
**Harness**: Codex
**Model ID**: ` gpt-5.6-sol `
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named in the report. Reproduce the issue with multiple Roots, then trace how the Maker plugin receives and wraps session_context.workdir before maker_status runs. Done means the selected bound Maker root is used safely, with coverage for multiple Roots and explicit directory input.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.