Skip to content

Add opt-in session-scoped logpoint output retrieval - #185

Merged
Oz Zafar (ozzafar) merged 1 commit into
mainfrom
feat/178-session-output
Oct 25, 2026
Merged

Oz Zafar (ozzafar) merged 1 commit into
mainfrom
feat/178-session-output

Conversation

@ozzafar

Copy link
Copy Markdown
Contributor

Summary

Fixes #178.

  • Add get_debug_output in both hosts, with required session ID and explicit prefix/category filtering, bounded results, session-bound incremental cursors, and eviction reporting.
  • Capture is off by default: enable the machine-scoped debugmcp.captureDebugOutput setting in VS Code, or serve --capture-output in the standalone CLI. MCP cannot enable capture.
  • Retain at most 8 sessions, 1000 events/256 KiB per session, with an 8 KiB event-size cap. Redact credential patterns and sensitive assignments before retention. No output persistence or logging; telemetry and arbitrary DAP metadata are not captured.
  • History survives session termination within these bounds; disposal or changing the VS Code setting clears it. Redaction is heuristic and event-local, not a disclosure guarantee.
  • Preserve multi-window routing and expose sessionId in active status responses.

Validation

  • npm run compile, npm run lint, npm run bundle: passed.
  • 141 focused extension-host tests passed, including real CLI DAP output, VS Code tracker integration, MCP tool calls, routing, disabled capture, cursor validation, limits, eviction, and redaction.
  • The first run hit the default 2-second timeout in an existing CLI adapter-lifecycle test; the focused suites passed with --timeout 10000.
  • git diff --check: passed.

Existing PR check

No matching open PR was found. Independent of PR #184.

Not merged; awaiting maintainer confirmation.

Add filtered bounded output capture with session cursors and credential redaction in both VS Code and CLI hosts. Capture is disabled by default and enabled only through user settings or an explicit CLI startup flag.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a882e001-7e0e-4256-8a20-8eaec9c947f4
@github-actions

Copy link
Copy Markdown

✅ Extension Build Successful!

📦 VSIX artifact is ready for download

👉 View artifacts

Scroll down to the "Artifacts" section and download extension-vsix

To install: In VS Code, run Extensions: Install from VSIX... and select the downloaded file.

@ozzafar
Oz Zafar (ozzafar) merged commit 2a367a2 into main Oct 25, 2026
3 checks passed
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.

Feature request: expose session-scoped logpoint output through MCP

1 participant