@dmsdc-ai/aigentry-telepty 0.1.46 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/daemon.js +3 -2
  2. package/package.json +1 -1
package/daemon.js CHANGED
@@ -633,8 +633,9 @@ app.post('/api/sessions/:id/inject', (req, res) => {
633
633
  if (from && !prompt.startsWith('[from:')) {
634
634
  finalPrompt = `[from: ${from}] [reply-to: ${reply_to}] ${prompt}`;
635
635
  }
636
- // Append reply guide when reply_to is set (self-contained reply instructions)
637
- if (reply_to && reply_to !== id) {
636
+ // Append reply guide when reply_to is set, UNLESS message contains termination signal
637
+ const TERMINATION_SIGNALS = /no further reply needed|thread closed|closed on .+ side|ack received|ack-only|회신 불필요|스레드 종료/i;
638
+ if (reply_to && reply_to !== id && !TERMINATION_SIGNALS.test(prompt)) {
638
639
  finalPrompt += `\n\n---\n[reply-to: ${reply_to}] 위 세션에 회신이 필요합니다. 답변 시 아래 명령을 실행하세요:\ntelepty inject --from ${id} ${reply_to} "답변 내용"\n---`;
639
640
  }
640
641
  const inject_id = crypto.randomUUID();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",