#Installing hackable version with pnpm

1 messages ยท Page 1 of 1 (latest)

pure dragon
#

@round bane help

round baneBOT
#

The error shows that guardCancel() is returning boolean | symbol but addMore is typed as boolean. This likely means guardCancel returns a Symbol (like Symbol.iterator or Symbol.dispose) for certain cancel/exit conditions.

Quick fix - cast the result to boolean:

addMore = guardCancel(...) as boolean

Or better, check what guardCancel is supposed to return and handle it properly. Can you share lines around 180-200 of src/commands/configure.ts so I can see the exact context?

The fix depends on what the Symbol return value represents - it might be that the code should handle the Symbol case differently rather than just casting it away.

#

The file isn't in the remote workspace - you're running this on your local Mac. Here's the fix:

Edit src/commands/configure.ts around line 186:

Change:

addMore = guardCancel(

To:

addMore = Boolean(guardCancel(

Or if you prefer explicit handling:

#
addMore = guardCancel(
  state,
  "Would you like to configure more providers?",
  { y: "Yes", n: "No, that's all" }
) as boolean;

The issue is that guardCancel returns boolean | symbol (likely Symbol.dispose or similar for cancellation), but addMore is typed as boolean. Using Boolean() or as boolean will coerce the symbol to true.

After fixing, run pnpm run build again. ๐Ÿฆ

pure dragon
#

this should work if i follow the instructions on the site right? i shouldn't have to make code changes?

round baneBOT
#

No, you shouldn't need to make any code changes! ๐Ÿฆ This is a bug in the codebase, not something you should have to fix.

The TypeScript error in src/commands/configure.ts at line 186 is a real issue - guardCancel() is returning boolean | symbol but the code expects just boolean.

This needs to be fixed in the repo. Peter, quick fix is:

// Line 186 - change from:
addMore = guardCancel(...)

// To:
addMore = Boolean(guardCancel(...))

Or cast it: addMore = guardCancel(...) as boolean

Kartikye, you shouldn't hit this error following normal instructions. This slipped through somehow. Sorry for the friction! ๐Ÿฆ

pure dragon
#

cat ~/.clawdbot/agents/main/agent/auth-profiles.json
{
"version": 1,
"profiles": {
"anthropic:claude-cli": {
"type": "oauth",
"provider": "anthropic",