Remove .md suffix stripping from key lookups
The strip_md_suffix function was removed but its usages remained, causing lookups like `identity.md` to fail (stripped to `identity` which didn't exist). Now keys are used as-is. Renamed 4 nodes that had .md suffixes to canonical form: - identity.md → identity - promotion-work-queue.md-* → promotion-work-queue-* - patterns.md#* → patterns-* - practices.md#* → practices-* Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
6c28eebb3f
commit
e8462af505
3 changed files with 4 additions and 30 deletions
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
use anyhow::{bail, Context, Result};
|
||||
use crate::hippocampus as memory;
|
||||
use crate::store;
|
||||
|
||||
pub async fn cmd_weight_set(key: &str, weight: f32) -> Result<()> {
|
||||
super::check_dry_run();
|
||||
|
|
@ -48,9 +47,8 @@ pub async fn cmd_render(key: &[String]) -> Result<()> {
|
|||
bail!("render requires a key");
|
||||
}
|
||||
let key = key.join(" ");
|
||||
let bare = store::strip_md_suffix(&key);
|
||||
|
||||
let rendered = memory::memory_render(None, &bare, None).await?;
|
||||
let rendered = memory::memory_render(None, &key, None).await?;
|
||||
print!("{}", rendered);
|
||||
|
||||
// Mark as seen if we're inside a Claude session (not an agent subprocess —
|
||||
|
|
@ -67,7 +65,7 @@ pub async fn cmd_render(key: &[String]) -> Result<()> {
|
|||
{
|
||||
use std::io::Write;
|
||||
let ts = chrono::Local::now().format("%Y-%m-%dT%H:%M:%S");
|
||||
let _ = writeln!(f, "{}\t{}", ts, bare);
|
||||
let _ = writeln!(f, "{}\t{}", ts, key);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue