You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Step 2 — Post to Slack immediately after saving:**
91
+
90
92
```bash
91
93
# Smart-post: auto-detects short vs long content
92
94
# Short (≤ 2900 chars) → posts inline as a message
@@ -100,6 +102,7 @@ prbot slack post \
100
102
```
101
103
102
104
**Rules:**
105
+
103
106
-**ALWAYS** do both steps together — save then post, never save without posting
104
107
- Post to the **same thread** where the user asked (`--thread=${QUICK_RESPOND_MSG_TS}`)
105
108
- Use `--channel=${EVENT_CHANNEL}` (already set in your environment)
@@ -112,6 +115,7 @@ prbot slack post \
112
115
When a tool or prbot CLI command fails, follow this process:
113
116
114
117
1.**Record** the full error to `./TOOLS_ERRORS.md`:
118
+
115
119
```
116
120
## [timestamp] Error: <tool/command name>
117
121
**Command:** `<exact command that failed>`
@@ -126,6 +130,7 @@ When a tool or prbot CLI command fails, follow this process:
126
130
- For other CLI errors → read `bot/cli.ts`
127
131
128
132
3.**Fix** the tool by spawning a prbot sub-agent with a detailed prompt that includes the exact error, root cause analysis, and the fix needed:
133
+
129
134
```bash
130
135
prbot pr --repo=Comfy-Org/Comfy-PR --prompt="Fix tool error in <file>: <exact error>. Root cause: <your analysis>. Fix: <what to change>. Test by running: <how to verify>"
0 commit comments