diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 282b8c76..23061702 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -5,7 +5,7 @@
"plugins": [
{
"name": "visualci",
- "version": "0.1.27",
+ "version": "0.1.28",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": { "name": "DocSpring", "url": "https://visualci.com" },
"homepage": "https://visualci.com/docs/skills/",
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 12db3312..1dcbda3c 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "visualci",
- "version": "0.1.27",
+ "version": "0.1.28",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": { "name": "DocSpring", "url": "https://visualci.com" },
"homepage": "https://visualci.com/docs/skills/",
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index dd1ada1c..603f596c 100644
--- a/.cursor-plugin/plugin.json
+++ b/.cursor-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "visualci",
"displayName": "VisualCI",
- "version": "0.1.27",
+ "version": "0.1.28",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": {
"name": "DocSpring"
diff --git a/gemini-extension.json b/gemini-extension.json
index aac4b8dd..003f6b5f 100644
--- a/gemini-extension.json
+++ b/gemini-extension.json
@@ -1,6 +1,6 @@
{
"name": "visualci",
- "version": "0.1.27",
+ "version": "0.1.28",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"mcpServers": {
"visualci": {
diff --git a/server/frontend/content/docs/agents.md b/server/frontend/content/docs/agents.md
index eda4473a..ec5629c0 100644
--- a/server/frontend/content/docs/agents.md
+++ b/server/frontend/content/docs/agents.md
@@ -58,8 +58,11 @@ Pages that legitimately render two ways can be accepted as a variant with `revie
## Keeping approval with people
-Some teams want agents to read builds and fix code, but leave approving changes to a person. Take the two review
-tools away from the agent in its client:
+Some teams want agents to read builds and fix code, but leave approving changes to a person. For agents in CI,
+which use the project's token, turn off **Project tokens can approve** in the project's settings (or `update_project`
+with `tokens_can_approve: false`): a project token can then still reject changes and comment, but approving, accepting
+a variant or ignoring a change takes a person. For agents on people's machines, which use their own token, take the
+two review tools away in the agent's client:
- **Claude Code:** deny them in `.claude/settings.json`, which the whole team shares through the repository:
diff --git a/server/frontend/src/api/types.ts b/server/frontend/src/api/types.ts
index 82af4e7f..221c3658 100644
--- a/server/frontend/src/api/types.ts
+++ b/server/frontend/src/api/types.ts
@@ -230,6 +230,8 @@ export type ProjectSettings = {
forge_webhook_at: string | null
/** Whether the screenshots visualci.yml's `gallery` names are public. */
gallery_enabled: boolean
+ /** Whether project tokens (CI's agents) may approve changes; off keeps approving with people. */
+ tokens_can_approve: boolean
/** Anyone, signed in or not, can read its builds and diffs. */
public: boolean
/** GitHub says its repository is public (checked on linking and once a day). Only then can it be public. */
diff --git a/server/frontend/src/pages/ProjectPage.tsx b/server/frontend/src/pages/ProjectPage.tsx
index 6eb22183..4515954f 100644
--- a/server/frontend/src/pages/ProjectPage.tsx
+++ b/server/frontend/src/pages/ProjectPage.tsx
@@ -254,6 +254,7 @@ const toDraft = (s: ProjectSettings): Draft => ({
threshold: s.threshold,
ignore_anti_aliasing: s.ignore_anti_aliasing,
gallery_enabled: s.gallery_enabled,
+ tokens_can_approve: s.tokens_can_approve,
public: s.public,
rules: s.ignore_rules.map((r) => ({
snapshots: r.snapshots,
@@ -532,6 +533,23 @@ function Settings({
))}
+