Skip to content

Backfill prompt sessions for origin filters#98

Draft
tony wants to merge 1 commit into
masterfrom
fix/origin-filter-session-prompts
Draft

Backfill prompt sessions for origin filters#98
tony wants to merge 1 commit into
masterfrom
fix/origin-filter-session-prompts

Conversation

@tony

@tony tony commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Keep prompt-scope searches on the prompt-history fast path for bare text queries.
  • Backfill prompt-capable session/conversation sources when prompt-scope searches include origin filters such as cwd, repo, worktree, or project fields.
  • Preserve prompt result filtering while allowing metadata-bearing session stores to participate.

Verification

  • rm -rf docs/_build; uv run ruff check . --fix --show-fixes; uv run ruff format .; uv run ty check; uv run py.test --reruns 0 -vvv; just build-docs;

why: Project-scoped prompt queries should return prompt records even when the matching project metadata lives in session stores rather than dedicated prompt-history files. Without a targeted backfill, origin filters can miss prompt records unless users know to widen scope manually.

what:
- Track origin fields on compiled queries so prompt searches can distinguish project filters from unrelated compiled predicates.
- Backfill conversation/session sources for prompt-scope origin filters while preserving the bare prompt-history fast path.
- Cover query-language cwd filters, explicit origin filters, and plan-time scope pruning.
@tony tony force-pushed the fix/origin-filter-session-prompts branch from b8fb9e4 to c7aeffc Compare July 11, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant