-
Notifications
You must be signed in to change notification settings - Fork 6
fix(store): resolve path-identity and watcher races behind base CI red #1148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8085756
f5333f1
f200602
86bd169
39921e8
b970e92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ use super::super::git_correlation::{ | |
| CommitSessionRecord, SpanObservation, enqueue_git_evidence_publication, | ||
| }; | ||
| use super::super::registered_db::{SessionRegisteredDb, SessionStoreAccess, SessionWriteTxn}; | ||
| use super::super::shared::path_identity_key; | ||
| use super::super::shared::{durable_project_path_key, path_identity_key}; | ||
| use super::codex_goal_reconciliation::find_preceding_codex_goal_response; | ||
| use super::types::{TranscriptBatch, TranscriptPersistenceError}; | ||
|
|
||
|
|
@@ -311,7 +311,7 @@ impl<D: SessionRegisteredDb + Sync> SessionStoreAccess<'_, D> { | |
| session.provider.clone(), | ||
| session.session_id.clone(), | ||
| session.project_key.clone(), | ||
| path_identity_key(&session.project_path), | ||
| durable_project_path_key(&session.project_path), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the daemon's current directory contains a AGENTS.md reference: AGENTS.md:L162-L164 Useful? React with 👍 / 👎. |
||
| session.title.clone(), | ||
| session.started_at, | ||
| session.ended_at, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On macOS for projects under
/var, observation projection deliberately persists the public/var/...spelling while itsproject_keycan be a typed project ID (canonical_projection.rs:65-84andobservation_projection/state.rs:1142-1169). This predicate now comparesproject_pathonly withdurable_project_path_key(project_selector), which expands the selector to/private/var/..., so project-filtered counts and searches by path miss those sessions. Match both the opened and canonical spellings here, as the changed analytics route already does.AGENTS.md reference: AGENTS.md:L130-L132
Useful? React with 👍 / 👎.