Skip to content

Stop reporting a kept memory script on every sync - #291

Merged
yourconscience merged 1 commit into
mainfrom
memory-leftovers
Nov 17, 2026
Merged

yourconscience merged 1 commit into
mainfrom
memory-leftovers

Conversation

@yourconscience

@yourconscience yourconscience commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

What and why

Two leftovers from the bundled memory removal, found in the pre-release test of the 3.0 line.

A kept script was reported forever. In a config from 2.8 whose memory hooks were deleted and one script edited, every sync printed starter files: ... kept modified 1 and kept (modified by you): memory/hooks/common.sh. tackroom no longer ships that file, so there is nothing left to track: sync now lists it once, drops it from .tackroom-starter.json and leaves the file alone.

The docs said "while a hook runs a script". The code keeps memory/ while a hook entry points at a script there, enabled or not, which is the safe behaviour: a config that still names a script must not lose it. The code is unchanged; docs/memory.md and the skill now say what it does, including that deleting the hook entries only lets sync remove untouched scripts before the first sync with this release. After that the files are the user's to delete.

No leftover tells a user to run tackroom memsearch: the only mentions are history lines in the Memory page and the release notes.

Known and left as is: a config root with no .tackroom-starter.json at all (from before 0.9.0, or with the manifest deleted) and edited legacy files still repeats the report, because no manifest is ever written there.

The 3.0 release note for this comes with the docs PR that collects the notes for the pre-release fixes.

How I checked it

  • go build, go vet, go test ./... pass; lint reports 0 issues; the docs site builds 17 pages with no warnings.

  • 2.8.0 setup --no-cron --memory basic in a throwaway home, one script edited, hooks set to [], then three syncs with this branch: the first prints removed 7 ... kept modified 1, the second and third print no starter lines. The edited file has the same checksum before and after, and the manifest is {"version": 1, "files": {}}.

  • With both hooks at enabled: false, sync prints memory/ in ~/.agents is yours now and all scripts stay.

  • go test ./... and go vet ./... pass

  • I can explain this change without an AI tool

Summary by Sourcery

Stop recurring reports for legacy memory scripts and clarify their migration and retention behavior.

Bug Fixes:

  • Stop repeatedly reporting edited legacy memory scripts by removing them from starter-file tracking after the first sync while leaving the files untouched.

Enhancements:

  • Clarify that memory files remain when any hook entry references them, regardless of whether the hook is enabled, and document the one-time handling of edited legacy scripts after hook removal.

Documentation:

  • Update the memory migration documentation and skill guidance to accurately describe hook-based memory retention and cleanup behavior.

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Sorry @yourconscience, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 6 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3bb91fa0-4224-4dfb-8dae-ec46df00c664
Commits

Reviewing files that changed from the base of the PR and between b79fa38 and 294054d.

Files selected for processing: 3

  • docs/memory.md
  • internal/app/starter_manifest.go
  • skills/tackroom/SKILL.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Stop retaining a modified legacy script in the starter manifest after reporting it, so later syncs leave it alone without reporting it again.

  • internal/app/starter_manifest.go L327-328, L330 (removed lines)

Documentation

Clarify that any hook entry pointing to a memory script keeps the memory directory, and explain when sync removes or leaves legacy files.

  • docs/memory.md L109-110
  • skills/tackroom/SKILL.md L115

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@yourconscience
yourconscience merged commit e375fc2 into main Nov 17, 2026
11 checks passed
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