Skip to content

recent activity shows first-note onboarding for projects that already have notes #1986

Closed

Description

@groksrc

bm_project(command="recent") shows the first-note onboarding prompt ("If the user is just getting started and has no notes yet…") for any project that has had no changes in the window, even one full of notes. Models often act on it and offer to create a "first note" in an established project.

What happens

Found in a 1.0 live MCP test (post-1.0), on v1.0.0 (c9bd187).

bm_project(command="recent", project="<a project with notes, none changed in 7 days>") returned:

No recent activity in '<project>' within 7d.

If the user is just getting started and has no notes yet, briefly explain that Basic Memory keeps notes ... then offer to save something useful from this conversation as their first note — wait for them to agree before writing:

Why

_format_project_output in src/basic_memory/mcp/tools/recent_activity.py:137-177 shows the prompt whenever the first, unfiltered page is empty. It never checks whether the project has any notes. The comment at lines 157-159 says one message is meant to cover both a brand-new project and a quiet one. The "Otherwise, widen the window" hint is there, but the onboarding text comes first and reads as an instruction.

Expected

  • Project with zero notes → onboarding prompt.
  • Project with notes but none in the window → only "No recent activity … widen the window with since="30d" or search".

Proposed fix

On an empty first page, run one cheap count of the project's notes and show the onboarding text only when it is 0.

🤖 Generated with Claude Code

Activity

  1. claude commented on Oct 30, 2026

    @claude
    Contributor

    Claude finished @groksrc's task in 12s —— View job


    Triage

    • Type: Bug (label bug applied)
    • Component: MCP tools (recent_activity). No Cloud label, since this isn't Cloud-specific.
    • Priority: Medium. Nothing breaks, but the misleading onboarding text can lead models to offer a "first note" in an established project.
    • Complexity: Simple. The change is localized: on an empty first page, run one note count and show the onboarding text only when the count is 0. It needs a regression test for both cases (zero notes and notes outside the window). The repo requires 100% coverage.
    • Duplicates: I searched open and closed issues and found none.

    The report already has the location (_format_project_output in src/basic_memory/mcp/tools/recent_activity.py), the cause, and the expected behavior. I need no further reproduction steps.

    I stopped at triage and made no code changes.

  2. added a commit that references this issue on Oct 30, 2026
    8574e45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions