Feature: Trajectory reporting (whole.log, enhanced history, HTML report)#8
Open
kirahan wants to merge 2 commits into
Open
Feature: Trajectory reporting (whole.log, enhanced history, HTML report)#8kirahan wants to merge 2 commits into
kirahan wants to merge 2 commits into
Conversation
- log_tee: stdout stderr tee with early buffer, gated by save-trajectory - history.jsonl: phase, action_kind, screenshot refs, init and terminal steps - report_generator: offline English HTML report from session and history - task_model: finalize log after summary, print Report and Preview URIs - vla: enable early buffer on run, persist cloud_session_id in session meta - user_config: document whole.log and report.html in save-trajectory help - unit tests for log tee, action styles, history append, report generation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
- Use UTF-16 with BOM for clip.exe stdin instead of raw utf-16le - Prevents localized Windows from treating paste bytes as ANSI - Fixes garbled input when typing app names in taskbar search Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
When
save-trajectoryis enabled, each run now produces a richer audit bundle under~/.mano/trajectory/, plus an interactive HTML report—without new config keys beyond the existingsave-trajectoryflag (default remainsfalse).What's New
1. Full terminal capture —
whole.logSession created:)whole.logwhen the session directory is created; closed after the task summary is printed2. Enhanced structured history —
history.jsonlEach line now includes:
phaseinit/action/terminalaction_kindopen_app,key,done, …)screenshotstatusDONE)Also records step 0 (Initializing) and DONE/FAIL steps; supports multiple lines per step to mirror the terminal timeline.
3. Visual report —
report.htmlsession.json+history.jsonl+ screenshots only (does not parsewhole.log)file://whole.logwhen present4. End-of-run convenience
Task summary prints:
Cloud runs optionally store
cloud_session_idinsession.jsonalongside the local trajectorysession_id.5. Documentation
README Configuration section documents
save-trajectory, artifacts, andmano-cua configusage.Session folder layout
Implementation
visual/trajectory/log_tee,history,action_styles,report_generator, unit testsvisual/vla.pyrun;cloud_session_idin session metavisual/model/task_model.pyvisual/view_model/task_view_model.pycloud_session_idvisual/config/user_config.pysave-trajectory=falseREADME.mdEnable
Files Changed
README.mdvisual/config/user_config.pyvisual/model/task_model.pyvisual/model/tests/__init__.pyvisual/view_model/task_view_model.pyvisual/vla.pyvisual/trajectory/(module + tests)Testing
PYTHONPATH=. python -m unittest discover -s visual/trajectory/tests -vsave-trajectory, run a task, verify all five artifact types existwhole.logincludes early logs, step output, summary, and report pathsreport.htmlopens in browser with correct steps and screenshotssave-trajectory false, no trajectory folder or tee (unchanged behavior)Suggested PR title:
Feature: trajectory reporting with whole.log and HTML report