Commit Graph

9 Commits

Author SHA1 Message Date
Bhavya U ca3b9bfb2f Remove dead serverToolCalls / IServerToolCall code (#310470)
Follow-up to #310343: remove dead code left behind after server-side
tool search removal.

- Remove IServerToolCall interface from fetch.ts
- Remove serverToolCalls field from IResponseDelta
- Remove logServerToolCall from IRequestLogger interface and all implementations
- Remove dead consumer in toolCallingLoop.ts
- Clean up unused imports
2026-04-15 22:21:47 -07:00
Tyler James Leonhardt 8c15ca4852 Move IRequestLogger into common (#309121)
* Move IRequestLogger into common

so that it can be used in common files.

also two tiny feedbacks in claude from https://github.com/microsoft/vscode/pull/309119

* format
2026-04-10 17:58:44 -07:00
Ulugbek Abdullaev 227524ee69 Live debug log entries for NES inline edit requests (#4649)
* Enhance inline edit logging with live updates and dynamic content resolution

* Fix "In progress" not clearing by using explicit completion flag

The "In progress" indicator was inferred from result/error fields being unset,
but many terminal code paths (markAsNoSuggestions, setIsSkipped, early returns
in the provider) never set those fields. Replace with an explicit _isCompleted
flag set via markCompleted() in the finally block, which always runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address PR review comments for live debug log entries

- Dispose per-entry subscriptions when entries are evicted from RequestLogger
- Throttle tree refreshes (200ms debounce) while keeping document updates immediate
- Fire 'latest' document change event when the updated entry is the most recent
- Use resolveMarkdownContent() in TestLoggedRequestInfo.toJSON()
- Add fireDidChange() to all state-mutating methods in InlineEditRequestLogContext
- Prune _liveRequestIds when evicting entries in InlineEditLogger
- Add isVisible predicate to IMarkdownContentRequest for dynamic tree filtering

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 23:24:57 +00:00
Paul 393b2e6482 Richer debug content rendering (#3986)
* open

* update

* wip

* cleanup

* cleanup

* update dts

* fix CI
2026-02-25 17:59:22 +00:00
Copilot ca80313cee feat: support Harbor/ATIF trajectory capture and export (#2893)
* Initial plan

* Add trajectory format types and core implementation

Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>

* Add unit tests for trajectory logger and fix implementation

Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>

* Add comprehensive documentation for trajectory format

Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>

* Add implementation status and next steps documentation

Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>

* Add trajectory implementation quick reference summary

* Add trajectory export commands and enhance trajectory logging functionality

* Refactor trajectory metrics calculation and update schema version to ATIF v1.5

* trajectory scaffolding

* Enhance trajectory tracking by adding subAgentName and agentName to tool metadata in SearchSubagentTool and TrajectoryLoggerAdapter

* add export trajectory cmd for tree nodes

* use sessionId for main trajectory

* Update command categories from 'Copilot' to 'Chat' in package.json

* Update trajectory schema version to ATIF-v1.5 and enhance error handling in export commands

* Remove obsolete trajectory documentation and integration files

* Refactor trajectory export commands and update README for clarity

* Update src/platform/trajectory/common/trajectoryLogger.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/platform/trajectory/node/trajectoryLogger.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/platform/trajectory/node/trajectoryLoggerAdapter.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/extension/trajectory/vscode-node/trajectoryExportCommands.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Refactor adapter to avoid double trajectory start and add comprehensive tests

- Remove redundant second startTrajectory call in adapter sync loop
- Add 12 comprehensive tests for TrajectoryLoggerAdapter covering:
  - Basic trajectory creation from request logs
  - User message deduplication
  - Tool call correlation (single, parallel, orphan)
  - Subagent trajectory linking
  - Metrics tracking
  - Session ID management
  - Non-conversation request handling
- Update TestRequestLogger to expose toolMetadata property
- Add async wait in tests for proper event processing

Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>

* rm readme

* enhance trajectory export functionality with session ID mapping and folder selection

* add comment

* add arch

* add bounding for logs and rm tests for now

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>
Co-authored-by: Zhichao Li <zhichli@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-03 00:34:07 +00:00
Bhavya U f9e27767d7 update server tool call logging to include result data (#3182) 2026-01-26 21:16:00 +00:00
Aaron Munger e4b30331eb notebook provider for an exported chat prompt (#3136)
* Add notebook serializer for chat replay exports with auto-collapsing cells

- Add ChatReplayNotebookSerializer to display .chatreplay.json files as notebooks
- Register notebook type 'copilot-chat-replay' in package.json
- Auto-collapse cells with collapsed: true metadata when notebook opens
- Add chatReplayTypes.ts with types for exported chat replay format
- Add chatReplayExport.ts with functions to create/serialize exports
- Refactor requestLogTree.ts to use shared export functions
- Add TestRequestLogger for unit testing
- Add comprehensive tests for serializer and export functions

* handle single exports

* styling
2026-01-23 23:26:48 +00:00
Ulugbek Abdullaev eed28ec3a1 Revert "request logger debug view grouping and ordering (#3019)" (#3114)
This reverts commit 3616847b8d.
2026-01-23 13:40:31 +00:00
Aaron Munger 3616847b8d request logger debug view grouping and ordering (#3019)
* Add hierarchical token support for request logger grouping

* chronological ordering, pr feedback

* revert subagent as child, not working

* Revert subagent hierarchy features from CapturingToken

Remove parentToken, createChild(), getRoot(), isDescendantOf() and currentToken
since tool invocation happens outside the parent's captureInvocation() context,
making AsyncLocalStorage-based context propagation infeasible.

Updated docs with Future Improvements section describing potential solutions.

* clean up tests

* perf feedback
2026-01-21 18:44:14 +00:00