Skip to content

feat(attachment_bear_note): Add exclude_archived search param#798

Merged
JeanMertz merged 3 commits into
mainfrom
rfd-review-bear-notes
Jun 25, 2026
Merged

feat(attachment_bear_note): Add exclude_archived search param#798
JeanMertz merged 3 commits into
mainfrom
rfd-review-bear-notes

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

Bear's search attachment URI now accepts an exclude_archived=true query parameter. When set, archived notes are dropped from the results before their content is fetched, so the assistant never sees stale or retired notes even when they match the tag or query.

Archived notes still count as matches under the hood; they're simply not returned. This is useful for tag-based searches where archived notes accumulate over time and would otherwise pollute context with outdated content.

The _bear-note justfile recipe now appends &exclude_archived=true to every Bear search URI it constructs, making this the default behaviour for all project-tooling lookups.

Bear's `search` attachment URI now accepts an `exclude_archived=true`
query parameter. When set, archived notes are dropped from the results
before their content is fetched, so the assistant never sees stale or
retired notes even when they match the tag or query.

Archived notes still count as matches under the hood; they're simply not
returned. This is useful for tag-based searches where archived notes
accumulate over time and would otherwise pollute context with outdated
content.

The `_bear-note` justfile recipe now appends `&exclude_archived=true`
to every Bear search URI it constructs, making this the default
behaviour for all project-tooling lookups.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit c2ae122 into main Jun 25, 2026
16 checks passed
@JeanMertz JeanMertz deleted the rfd-review-bear-notes branch June 25, 2026 12:48
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