Skip to content

Commit 703a618

Browse files
Claudeclaude
authored andcommitted
fix: exclude archived learnings from free tier search and log (v1.3.1)
- keywordSearch now filters is_active !== false before BM25 scoring - log free tier path now includes is_active: eq.true filter - Removed uninstall line from init success footer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c99770d commit 703a618

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.3.1] - 2026-02-22
11+
12+
### Fixed
13+
- **Archived learnings excluded from free tier search/log**: `keywordSearch` and `log` on the free tier (local JSON storage) now filter out `is_active === false` learnings, matching pro tier behavior.
14+
15+
### Changed
16+
- **Removed uninstall line from init success footer**: Cleaner post-install output.
17+
1018
## [1.3.0] - 2026-02-22
1119

1220
### Added

bin/init-wizard.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,7 @@ async function main() {
913913
console.log("───────────────────────────────────────────────────");
914914
console.log("");
915915
console.log(`${PRODUCT} ${C.red}${C.bold}installed successfully!${C.reset}`);
916-
console.log(`${C.dim}Docs:${C.reset} ${C.red}https://gitmem.ai/docs${C.reset}`);
917-
console.log(`${C.dim}Remove:${C.reset} npx gitmem-mcp uninstall`);
916+
console.log(`${C.dim}Docs:${C.reset} ${C.red}https://gitmem.ai/docs${C.reset}`);
918917
console.log("");
919918
console.log(`${C.dim}Try asking your agent:${C.reset}`);
920919
console.log(` ${C.italic}"Review the gitmem tools, test them, convince yourself"${C.reset}`);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitmem-mcp",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"mcpName": "io.github.gitmem-dev/gitmem",
55
"description": "Persistent learning memory for AI coding agents. Memory that compounds.",
66
"type": "module",

src/services/local-file-storage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export class LocalFileStorage {
155155
* Uses stemming, IDF weighting, and document length normalization.
156156
*/
157157
async keywordSearch(query: string, k = 5): Promise<RelevantScar[]> {
158-
const learnings = this.readCollection<Record<string, unknown>>("learnings");
158+
const learnings = this.readCollection<Record<string, unknown>>("learnings")
159+
.filter((l) => l.is_active !== false);
159160
if (learnings.length === 0) return [];
160161

161162
// Build BM25 documents with field boosting

src/tools/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export async function log(params: LogParams): Promise<LogResult> {
121121
const queryTimer = new Timer();
122122
const storage = getStorage();
123123

124-
const filters: Record<string, string> = {};
124+
const filters: Record<string, string> = { is_active: "eq.true" };
125125
if (typeFilter) filters.learning_type = typeFilter;
126126
if (severityFilter) filters.severity = severityFilter;
127127

0 commit comments

Comments
 (0)