Commit Graph

5 Commits

Author SHA1 Message Date
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