Files
orca/src
AnmolandNeil 9b15b2bbec fix(ai-vault): show Copilot sessions under their workspace with the original prompt as title (#31160)
* fix(ai-vault): show Copilot sessions under their workspace with the original prompt as title

Copilot sessions in Agent Session History showed "Unknown location" and
titles prefixed with an injected <current_datetime> tag.

The Copilot parser only learned a session's folder from the
"Folder X has been added to trusted folders" notice, which Copilot does
not write for every session. It now reads the launch directory, git
root and branch from session.start's context, and the trust notice only
fills a folder the start did not name, so resume runs in the start
directory as it does for other agents.

User messages now take the original `content` before
`transformedContent`, which carries context Copilot injects.
`current_datetime` joins the hidden blocks so a transformed-only
message still gets a clean title.

Bump the session parse cache schema so histories cached with the old
parser are re-read once instead of keeping the wrong folder and title.

Fixes #30985

* fix(ai-vault): refresh cached Copilot metadata and search text

---------

Co-authored-by: Neil <neil@stably.ai>
2026-10-23 20:30:39 -07:00
..