Skip to content

Commit 31f52c8

Browse files
committed
fix: allow manual triggers when manual mode is off
1 parent 9bf29f3 commit 31f52c8

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

lib/commands/manual.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ const MANUAL_MODE_ON =
2525

2626
const MANUAL_MODE_OFF = "Manual mode is now OFF. Automatic context injection is enabled again."
2727

28-
const MANUAL_MODE_REQUIRED = "Manual mode is OFF. Run /dcp manual on to use manual tool triggers."
29-
3028
const NO_PRUNABLE_TOOLS = "No prunable tool outputs are currently available for manual triggering."
3129

3230
function toolDisabledMessage(tool: string): string {
@@ -133,11 +131,6 @@ export async function handleManualTriggerCommand(
133131
const { client, state, config, logger, sessionId, messages } = ctx
134132
const params = getCurrentParams(state, messages, logger)
135133

136-
if (!state.manualMode) {
137-
await sendIgnoredMessage(client, sessionId, MANUAL_MODE_REQUIRED, params, logger)
138-
return null
139-
}
140-
141134
const toolPermission = config.tools[tool].permission
142135
if (toolPermission === "deny") {
143136
await sendIgnoredMessage(client, sessionId, toolDisabledMessage(tool), params, logger)

0 commit comments

Comments
 (0)