feat(core): store relative path for sessions (#24704)

This commit is contained in:
James Long 2026-04-28 11:51:24 -04:00 committed by GitHub
commit 2c2fc3499b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1460 additions and 4 deletions

View file

@ -936,6 +936,7 @@ export type Session = {
projectID: string
workspaceID?: string
directory: string
path?: string
parentID?: string
summary?: {
additions: number
@ -1063,6 +1064,7 @@ export type SyncEventSessionUpdated = {
projectID?: string | null
workspaceID?: string | null
directory?: string | null
path?: string | null
parentID?: string | null
summary?: {
additions: number
@ -1882,6 +1884,7 @@ export type GlobalSession = {
projectID: string
workspaceID?: string
directory: string
path?: string
parentID?: string
summary?: {
additions: number

View file

@ -10154,6 +10154,9 @@
"directory": {
"type": "string"
},
"path": {
"type": "string"
},
"parentID": {
"type": "string",
"pattern": "^ses.*"
@ -10584,6 +10587,16 @@
}
]
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"parentID": {
"anyOf": [
{
@ -12538,6 +12551,9 @@
"directory": {
"type": "string"
},
"path": {
"type": "string"
},
"parentID": {
"type": "string",
"pattern": "^ses.*"