Fix Ashby resume upload and add validation error logging

Ashby wraps file input inside #_systemfield_resume container — search
for the actual input[type="file"] element. Also capture and log
validation errors from the page when submit returns incomplete.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 20:47:15 -08:00
parent ae797d73eb
commit a17886e58b
3 changed files with 23 additions and 6 deletions

View File

@@ -399,6 +399,9 @@ async function handleResult(job, result, results, settings, profile, apiKey) {
case 'stuck':
case 'incomplete': {
if (result.validation_errors?.length) {
console.log(` ⚠️ Validation errors: ${result.validation_errors.join(' | ')}`);
}
const retries = (job.retry_count || 0) + 1;
const maxRetry = settings.max_retries ?? DEFAULT_MAX_RETRIES;
if (retries <= maxRetry) {