Skip to content

fix(mcp): wire CaptureLog + ConfigDir in buildDeps for capture history#116

Merged
couragehong merged 1 commit into
feat/go-migrationfrom
couragehong/fix/mcp-builddeps-wire
May 7, 2026
Merged

fix(mcp): wire CaptureLog + ConfigDir in buildDeps for capture history#116
couragehong merged 1 commit into
feat/go-migrationfrom
couragehong/fix/mcp-builddeps-wire

Conversation

@couragehong

Copy link
Copy Markdown
Contributor

CaptureService.CaptureLog stayed nil and LifecycleService.ConfigDir empty because buildDeps never set them. Capture writes succeeded against envector (records appeared in the team index) but capture_log.jsonl never got appended (capture.go:155 skips Append when CaptureLog is nil), and CaptureHistory tried to read "capture_log.jsonl" relative to the process cwd via filepath.Join("", logio.DefaultFilename).

buildDeps now resolves ~/.rune via config.RuneDir() (with $HOME fallback so handler dispatch never panics during boot), constructs a logio.New pointed at ~/.rune/capture_log.jsonl, and injects it into both services.

Surfaces the missing wiring noticed during local-smoke end-to-end verification: 6 records present in the envector index but /rune:capture_history empty.

CaptureService.CaptureLog stayed nil and LifecycleService.ConfigDir empty
because buildDeps never set them. Capture writes succeeded against
envector (records appeared in the team index) but capture_log.jsonl never
got appended (capture.go:155 skips Append when CaptureLog is nil), and
CaptureHistory tried to read "capture_log.jsonl" relative to the process
cwd via filepath.Join("", logio.DefaultFilename).

buildDeps now resolves ~/.rune via config.RuneDir() (with $HOME fallback
so handler dispatch never panics during boot), constructs a logio.New
pointed at ~/.rune/capture_log.jsonl, and injects it into both services.

Surfaces the missing wiring noticed during local-smoke end-to-end
verification: 6 records present in the envector index but
/rune:capture_history empty.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@couragehong couragehong self-assigned this May 7, 2026
@couragehong
couragehong merged commit 2c6d972 into feat/go-migration May 7, 2026
2 of 3 checks passed
@couragehong
couragehong deleted the couragehong/fix/mcp-builddeps-wire branch May 7, 2026 11:37
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.

1 participant