Skip to content

The injected briefing prints the 32-hex project id repeatedly and the standard index repeats memories already shown #409

Done

Description

@kevintseng

The injected briefing wastes characters, and the waste is in every session.

Found by an independent dogfood pass on 4.10.2 (copies of a real graph):

  1. The 32-hex project id is printed in every heading: Task state for "<label>~<32 hex>", Decisions and direction for ..., Recent activity in ..., three times in a minimal block of about 1.3k characters (six times in one tester's run). It is also baked into stored names: memesh learn created lesson-<label>~<32 hex>-<slug>-<8 hex>, and an empty new HOME greets a first-time user with the hash.
  2. At standard, three of the five index lines repeat memories printed a few lines above (the footer says index cost: 5 lines, 753 bytes, one line of which is new).
  3. Recent activity spends slots on [session-insight] lines such as significant session (1814 tool calls).

Fix direction: print the label only in headings and names (the full id stays in tags); leave out of the index the ids already rendered above it (the hook and the briefing share the work-topology leaf, so one change serves both); consider excluding session-insight from recent activity.

Activity

  1. kevintseng commented on Sep 22, 2026

    @kevintseng
    CollaboratorAuthor

    Progress on the first part of this issue, in #415: the headings of the briefing, the task-state lines, the index heading, the first-run banner and the lines memesh task prints now name the project by its label ("memesh"), through one rule, projectLabel in src/core/work-topology.ts.

    What is left of that first part: the titles the session-summary and pre-compact hooks store are <date> <label>~<32 hex>: <summary> and they are printed as stored under Recent activity. Reproduced by seeding one such memory and running memesh briefing at the standard level:

    Recent activity in "memesh":
    - [session-insight] 2026-09-22 memesh~2c0fe491888c8efb9a4894828bbc2733: edited 12 file(s) [mem:1]
    

    Two ways to close it:

    • Strip a trailing routing hash from a rendered title in the shared leaf (topologyLine). It also fixes rows that are already stored, and changes no data.
    • Write the label into the hooks' titles (session-summary.js, pre-compact.js). It only affects new rows.

    The first looks better: the graph already holds such rows, and the hash carries no meaning in prose. The second half of this issue (the standard index repeats memories the block already shows) is untouched by #415.

  2. kevintseng commented on Sep 26, 2026

    @kevintseng
    CollaboratorAuthor

    The remaining title part is fixed in #467: rendered memory lines drop the ~<32 hex> routing hash. The index repeating lines already shown, and session-insight lines in Recent activity, stay open here.

  3. kevintseng commented on Dec 2, 2026

    @kevintseng
    CollaboratorAuthor

    Session briefings omit previously rendered entries from the recent index while preserving scope and ordering. Verified on the open PR #650.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions