Skip to content

Commit 82b1ad5

Browse files
committed
removing bin from commit and fixing the agent resume session
1 parent ae700be commit 82b1ad5

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ bun.lock
2121
AGENTS.md
2222
prd/
2323
package-lock.json
24+
bin/

‎bin/autohand‎

-59.2 MB
Binary file not shown.

‎src/commands/resume.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,7 @@ export async function resume(ctx: {
143143
type: 'select',
144144
name: 'selected',
145145
message: 'Choose a session',
146-
choices,
147-
result(value: string) {
148-
// Return the session ID (name), not the display message
149-
return value;
150-
}
146+
choices
151147
}
152148
]);
153149

‎src/core/agent.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,9 +1479,10 @@ If lint or tests fail, report the issues but do NOT commit.`;
14791479
type: 'password',
14801480
name: 'apiKey',
14811481
message: `Enter your ${providerName} API key`,
1482-
validate: (val: string) => {
1483-
if (!val?.trim()) return 'API key is required';
1484-
if (val.length < 10) return 'API key seems too short';
1482+
validate: (val: unknown) => {
1483+
const v = val as string;
1484+
if (!v?.trim()) return 'API key is required';
1485+
if (v.length < 10) return 'API key seems too short';
14851486
return true;
14861487
}
14871488
}

0 commit comments

Comments
 (0)