astrocode-workflow 0.1.41 → 0.1.43

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.
@@ -51,8 +51,8 @@ export function createContinuationEnforcer(opts) {
51
51
  clearPeriodicTimer(sessionId);
52
52
  if (!config.continuation.enabled)
53
53
  return;
54
- // Inject every 5 minutes (300,000 ms)
55
- const interval = 5 * 60 * 1000;
54
+ // Inject every 3 minutes (180,000 ms)
55
+ const interval = 3 * 60 * 1000;
56
56
  const s = getState(sessionId);
57
57
  s.periodicTimer = setInterval(() => {
58
58
  // Fire and forget
@@ -155,6 +155,8 @@ export function createContinuationEnforcer(opts) {
155
155
  return;
156
156
  if (!config.continuation.inject_on_tool_done_if_run_active)
157
157
  return;
158
+ // Inject continuation immediately after any tool execution
159
+ void maybeInjectContinue(sessionId, "tool_execution");
158
160
  scheduleIdleInjection(sessionId);
159
161
  },
160
162
  async onChatMessage(_input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astrocode-workflow",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -88,8 +88,8 @@ export function createContinuationEnforcer(opts: {
88
88
  clearPeriodicTimer(sessionId);
89
89
  if (!config.continuation.enabled) return;
90
90
 
91
- // Inject every 5 minutes (300,000 ms)
92
- const interval = 5 * 60 * 1000;
91
+ // Inject every 3 minutes (180,000 ms)
92
+ const interval = 3 * 60 * 1000;
93
93
 
94
94
  const s = getState(sessionId);
95
95
  s.periodicTimer = setInterval(() => {
@@ -208,6 +208,9 @@ export function createContinuationEnforcer(opts: {
208
208
  if (!sessionId) return;
209
209
  if (!config.continuation.inject_on_tool_done_if_run_active) return;
210
210
 
211
+ // Inject continuation immediately after any tool execution
212
+ void maybeInjectContinue(sessionId, "tool_execution");
213
+
211
214
  scheduleIdleInjection(sessionId);
212
215
  },
213
216