Skip to content

fix(store): honor profile in local search#307

Merged
upsetbit merged 1 commit into
masterfrom
codex/fix-search-profile-filter
Jun 27, 2026
Merged

fix(store): honor profile in local search#307
upsetbit merged 1 commit into
masterfrom
codex/fix-search-profile-filter

Conversation

@upsetbit

Copy link
Copy Markdown
Contributor

Summary

Fixes #290.

Local search now honors the --profile filter and returns the session profile in JSON hits.

What changed

  • Added s.profile = ? to the local search filter path when SessionFilter.Profile is set.
  • Selected and scanned sessions.profile into SearchHit.Session.Profile.
  • Added a regression test for work vs default profile search hits.

Validation

  • go test ./internal/store -run 'TestSearchFilterByProfileAndReturnsProfile|TestSearch' -count=1
  • go test ./internal/store/... -race
  • go test ./internal/cli/... -race
  • go build -o ./bin/prosa ./cmd/prosa

@upsetbit upsetbit added bug Something isn't working area:cli prosa CLI area:store SQLite + Postgres + migrations + FTS5 scope:cli prosa CLI commands, flags, rendering, setup, and scheduled sync scope:store SQLite, Postgres, migrations, FTS, and raw-object metadata severity:medium Latent bug, inconsistent contract, brittle pattern priority:P1 Important reliability, usability, workflow, or audit follow-up source:audit Created from an audit report or validation pass labels Jun 27, 2026
@upsetbit upsetbit merged commit 8b5c565 into master Jun 27, 2026
4 checks passed
@upsetbit upsetbit deleted the codex/fix-search-profile-filter branch June 27, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli prosa CLI area:store SQLite + Postgres + migrations + FTS5 bug Something isn't working priority:P1 Important reliability, usability, workflow, or audit follow-up scope:cli prosa CLI commands, flags, rendering, setup, and scheduled sync scope:store SQLite, Postgres, migrations, FTS, and raw-object metadata severity:medium Latent bug, inconsistent contract, brittle pattern source:audit Created from an audit report or validation pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local search ignores --profile and omits profile in JSON hits

1 participant