fix(web): reduce web gateway scope request#96
Open
vedworks wants to merge 1 commit into
Open
Conversation
Request only operator.admin when the DenchClaw web runner connects to the gateway. This avoids operator.write mismatches on admin-scoped gateway auth while preserving the RPC access this chat path needs.
Fato07
pushed a commit
to Fato07/elav
that referenced
this pull request
Mar 26, 2026
Agents were being woken immediately when an issue was created or reassigned with status "backlog", defeating the purpose of backlog as "not ready to work on yet" (issue DenchHQ#96). Added `&& issue.status !== "backlog"` guard to both the CREATE and PATCH wakeup paths, mirroring the existing done/cancelled suppression pattern already present in the file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
operator.adminfrom the web chat gateway client instead of asking for redundant read/write/admin scopesmissing scope: operator.writefailures on admin-scoped gateway auth while preserving the operator RPC access this path needsTest plan
pnpm --dir apps/web test -- lib/agent-runner.test.tspnpm lint(currently fails due unrelated existingcurly/no-unused-varsviolations in files outside this change, includingapps/web/lib/terminal-server.ts,src/cli/web-runtime-command.ts,src/cli/web-runtime-launchd.ts,src/cli/web-runtime.ts,apps/web/lib/active-runs.test.ts, andapps/web/app/components/cron/cron-dashboard.tsx)