{"record":{"id":"d29b318ce6486186","repo":"jackwener/OpenCLI","slug":"uid-d29b31","errorCode":null,"errorMessage":"未找到该候选人，请确认 uid 是否正确","messagePattern":"未找到该候选人，请确认 uid 是否正确","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"clis/boss/resume.js","lineNumber":36,"sourceCode":"    description: 'BOSS直聘查看候选人简历（招聘端）',\n    domain: 'www.zhipin.com',\n    strategy: Strategy.COOKIE,\n    navigateBefore: false,\n    browser: true,\n    args: [\n        { name: 'uid', required: true, positional: true, help: 'Encrypted UID of the candidate (from chatlist)' },\n    ],\n    columns: [\n        'name', 'gender', 'age', 'experience', 'degree', 'active_time',\n        'work_history', 'education',\n        'job_chatting', 'expect',\n    ],\n    func: async (page, kwargs) => {\n        requirePage(page);\n        await navigateToChat(page, 3);\n        const friend = await findFriendByUid(page, kwargs.uid, { maxPages: 5 });\n        if (!friend)\n            throw new Error('未找到该候选人，请确认 uid 是否正确');\n        const numericUid = friend.uid;\n        const clicked = await clickCandidateInList(page, numericUid);\n        if (!clicked) {\n            throw new Error('无法在聊天列表中找到该用户，请确认聊天列表中有此人');\n        }\n        await page.wait({ time: 2 });\n        // Scrape the right panel\n        const resumeInfo = await page.evaluate(`\n      (() => {\n        const container = document.querySelector('.base-info-single-container') || document.querySelector('.base-info-content');\n        if (!container) return { error: 'no container found' };\n\n        const nameEl = container.querySelector('.base-name');\n        const name = nameEl ? nameEl.textContent.trim() : '';\n\n        let gender = '';\n        const detailDiv = container.querySelector('.base-info-single-detial');\n        if (detailDiv) {","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/jackwener/OpenCLI/blob/49907e53dc3ade5c223ff0c4c2c2785687cec4e6/clis/boss/resume.js#L18-L54","documentation":"`opencli boss resume` scans up to 5 chat-list pages (no greet-list check) via findFriendByUid; if the candidate is absent it throws '未找到该候选人，请确认 uid 是否正确'. Because it checks the chat list only, candidates present solely in the greet list are also reported as not found.","triggerScenarios":"`opencli boss resume <uid>` with a uid not in the first 5 pages of the chat list: stale uid, typo, candidate only in greet list, chat deleted/archived, or candidate deeper than 5 pages.","commonSituations":"Fetching resumes for candidates from an old session; greeting candidates and immediately trying resume before they appear in the chat list; uid truncated by shell; very long chat lists exceeding the 5-page scan.","solutions":["Verify the uid from `opencli boss recommend` or the chat list and retry.","Confirm the candidate has an actual chat-list entry (has been chatted) in the browser.","Re-check the uid for typos/truncation.","Re-greet/scroll the candidate into the recent chat list, then retry."],"exampleFix":"// before\nopencli boss resume <greet-list-only-uid>\n// after\nopencli boss greet <uid> \"你好\"   # establish chat entry first\nopencli boss resume <uid>","handlingStrategy":"try-catch","validationCode":"const uid = args.uid;\nif (!uid || typeof uid !== 'string' || uid.trim() === '') {\n  throw new Error('uid is required; obtain it from `opencli boss recommend`.');\n}","typeGuard":"function isValidUid(v) {\n  return typeof v === 'string' && v.trim().length > 0;\n}","tryCatchPattern":"try {\n  await run(['opencli', 'boss', 'resume', uid]);\n} catch (e) {\n  if (e.message.includes('未找到该候选人')) {\n    console.error('Not in first 5 chat-list pages; verify uid and that the candidate has a chat entry.');\n  }\n  throw e;\n}","preventionTips":["Only resume candidates who already appear in the chat list (have been chatted).","Refresh uids per session via recommend.","Check uid copy-paste integrity.","For long lists, ensure the candidate is recent — resume scans at most 5 pages."],"tags":["candidate-not-found","boss","chat-list"],"backgroundTag":"entity-not-found","analyzedSha":"49907e53dc3ade5c223ff0c4c2c2785687cec4e6","analyzedAt":"2026-08-29T08:14:47.543Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}