Repository navigation
Overhaul Floppy Memory - #38
Conversation
✅ Deploy Preview for elph ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
ℹ️ No critical issues — a solid, well-tested feature. Two minor suggestions inline plus a couple of notes below.
Reviewed changes
start_tasknow surfaces related past tasks (feat(floppy)):StartTaskResultgainsrelated_tasks: Vec<TaskOutcome>populated by a cosine query overtasks.embeddingthat reuses the already-computed task embedding (no second inference pass), filters to finished tasks, thresholds at 0.35, and caps at 3. Thestart_taskagent tool renders these as a short "Related past tasks" note with status/cost/errors and uses a char-safetruncate_charson descriptions.- Tests: a discriminative bag-of-words embedder mock plus
start_task_surfaces_similar_past_tasksasserting similar vs. unrelated tasks are separated by the threshold, along with emptiness assertions on fresh/empty stores. The new test genuinely exercises the behavior and would fail if the query broke. - Docs:
docs/archive/memory.mdcovers the newrelated_tasksreturn. SQL verified consistent with the existingretrieve.rsquery pattern and thetasksschema.
⚠️ Scope — this PR bundles two unrelated changes
The memory feature (0bfed2b) is paired with an unrelated chore(models): refresh chat model catalog from live sources (7017c65) that regenerates ~30 provider catalogs. The catalog refresh looks internally consistent, but it's a separate concern that will be noise in review history and bisection for the memory overhaul. Worth splitting into its own PR (or at minimum calling out in the description) if it isn't an intentional bundle.
ℹ️ Nitpicks
crates/coding-agent/src/memory/tools.rs:135— theNone => "in-progress"arm of thecompletedmatch is unreachable:related_tasksonly returns rows withfinished_at IS NOT NULL, andend_taskalways writes a non-nullcompleted. Harmless, but the label will never render.crates/floppy/src/memory/store/tasks.rs:138-157— the related-task query does a per-start_taskfull scan computing cosine distance across every stored finished task (no indexed ordering). Fine at current store sizes, but worth watching as task counts grow.
DeepSeek Flash | 𝕏
| Ok(StartTaskResult { | ||
| task_id, | ||
| memories, | ||
| related_tasks: self.related_tasks(related_emb_buf).await.unwrap_or_default(), |
There was a problem hiding this comment.
The unwrap_or_default() here swallows any error from the related-tasks query (e.g. a vector-type/schema mismatch) with no trace. Since a failure silently degrades the whole feature to empty, log it: match self.related_tasks(related_emb_buf).await { Ok(v) => v, Err(e) => { log::warn!("related tasks query failed: {e:#}"); Default::default() } } — keeps the non-fatal boundary while surfacing real misconfiguration.

Summary
Kind
Tested
Update
docs/in this PR if CLI, crate API, config, or user-visible behavior changed.