Files
connectai/docs/records/ConnectAI/development/2026-05-02_remove-local-template-replies.md
2026-05-02 16:34:45 +09:00

1.0 KiB

Development Log: Remove Local Template Replies

Purpose

Remove hard-coded local response templates that bypassed the normal model and trace flow.

Problem

Second Brain overview prompts could return a fixed table-style response such as "현재 연결된 제2뇌..." without model analysis. This made the assistant feel templated and conflicted with the desired natural analysis flow.

Implementation Summary

  • Removed the local task shortcut before model execution.
  • Removed the hard-coded Second Brain overview renderer.
  • Removed the hard-coded unproductive-reply correction path.
  • Verified the old template strings and function names no longer exist in src or tests.

Changed Files

  • src/agent.ts

Verification

  • rg for removed template functions and strings returned no matches.
  • ./node_modules/.bin/tsc --noEmit
  • npm run compile
  • ./node_modules/.bin/jest --runInBand

Result

Second Brain questions now go through the normal model answer path with trace context instead of returning canned local templates.