agentp 0.11.0 → 0.11.1

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/bin/tgagentp +12 -0
  2. package/package.json +1 -1
package/bin/tgagentp CHANGED
@@ -1799,6 +1799,12 @@ async function main() {
1799
1799
  await sendLongMessage(token, chatState, '⏳ Server is busy. Use `/cancel` to cancel or note again later.');
1800
1800
  return;
1801
1801
  }
1802
+
1803
+ // Auto-switch tmux window to this chat's server
1804
+ const srvList = listServers();
1805
+ const srvMatch = srvList.find(s => normalizeUrl(s.url) === normalizeUrl(url));
1806
+ if (srvMatch) activateServer(srvMatch.dir, srvMatch.index, srvMatch.url);
1807
+
1802
1808
  const intro = 'The following information is for your awareness. Reply with only "Ack" and do not take any action:';
1803
1809
  st.busy = true;
1804
1810
  const myTaskId = ++st.taskId;
@@ -2061,6 +2067,12 @@ async function main() {
2061
2067
  await sendLongMessage(token, cs, '⏳ Server is busy. Use `/cancel` to cancel or `/queue <message>` to queue your message.');
2062
2068
  continue;
2063
2069
  }
2070
+
2071
+ // Auto-switch tmux window to this chat's server
2072
+ const srvList = listServers();
2073
+ const srvMatch = srvList.find(s => normalizeUrl(s.url) === normalizeUrl(cs.serverBase));
2074
+ if (srvMatch) activateServer(srvMatch.dir, srvMatch.index, srvMatch.url);
2075
+
2064
2076
  st.busy = true;
2065
2077
  const myTaskId = ++st.taskId;
2066
2078
  log.debug(` → started background processing (task ${myTaskId})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentp",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Pipe prompts into a running OpenCode TUI session and stream the final answer",
5
5
  "bin": {
6
6
  "agentp": "bin/agentp",