Skip to content

fix(daemon): reduce comment context usage#2956

Open
drybalka-s wants to merge 4 commits into
multica-ai:mainfrom
drybalka-s:drybalka/0.3.4-daemon-context-reduction
Open

fix(daemon): reduce comment context usage#2956
drybalka-s wants to merge 4 commits into
multica-ai:mainfrom
drybalka-s:drybalka/0.3.4-daemon-context-reduction

Conversation

@drybalka-s
Copy link
Copy Markdown

@drybalka-s drybalka-s commented May 20, 2026

Summary

  • Reduce daemon context usage by making comment reads default to a recent-thread window and adding compact --summary output for long issue histories.
  • Keep full comment history available behind explicit --all for assignment flows that truly need it.
  • Trim persisted tool-result output and coalesce adjacent transcript text/thinking chunks in the UI.
  • Harden agent-authored issue comments by removing inline --content "..." from daemon reply prompts and requiring --content-file on Windows or single-quoted HEREDOC stdin on Linux/macOS.

Problem solved

Long-running issues were pushing too much comment history and tool output into agent context. Some daemon prompts also still showed inline --content "...", which let the shell expand $(), variables, quotes, and code snippets before multica received the comment body.

Validation

  • go test ./cmd/multica -run TestResolveTextFlag
  • go test ./internal/daemon/execenv -run 'TestBuildCommentReplyInstructions|TestInjectRuntimeConfigCommentTriggerUsesHelper|TestInjectRuntimeConfigWindowsCommentTriggerHasNoStdin|TestInjectRuntimeConfigCodexLinuxEmphasizesStdin'
  • Rebuilt patched multi-arch CLI/daemon binaries and verified multica v0.3.4-patched on linux/amd64.
  • Live daemon log now shows --recent 20 --summary --output json and cat <<'COMMENT' | multica issue comment add ... --content-stdin for pi.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

Someone is attempting to deploy a commit to the IndexLabs Team on Vercel.

A member of the Team first needs to authorize it.

@drybalka-s drybalka-s force-pushed the drybalka/0.3.4-daemon-context-reduction branch from e1b89b2 to 5a0a6a5 Compare May 21, 2026 12:17
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