@vibevibes/mcp 0.9.0 → 0.9.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.
- package/hooks/logic.js +8 -3
- package/package.json +1 -1
package/hooks/logic.js
CHANGED
|
@@ -136,9 +136,14 @@ export function makeDecision(ctx, iteration) {
|
|
|
136
136
|
// Experience signaled completion — allow exit (agent file already deleted by stop-hook)
|
|
137
137
|
if (ctx.observation?.done)
|
|
138
138
|
return null;
|
|
139
|
-
//
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
// Always block exit while connected — the agent should stay alive.
|
|
140
|
+
// If there are events/errors, include them. Otherwise, minimal keepalive.
|
|
141
|
+
if (!hasEvents && !hasError && !hasBrowserErrors && !hasObserveError) {
|
|
142
|
+
return {
|
|
143
|
+
decision: "block",
|
|
144
|
+
reason: "Still connected. Waiting for activity.",
|
|
145
|
+
};
|
|
146
|
+
}
|
|
142
147
|
const reason = formatPrompt(ctx);
|
|
143
148
|
return {
|
|
144
149
|
decision: "block",
|