increase timeout

master
Matt Huntington 1 month ago
parent ee8b8d3f85
commit 55de9f9014

@ -17,7 +17,7 @@ app.post('/prompt', (req, res)=>{
console.log(req.body.content);
const result = execSync(
`cd /home/matt/pathfinder && claude -p "${req.body.content}" ${resumeFlag} --output-format json --allowedTools "Bash(*)" "Read(*)" "Write(*)" "Edit(*)"`,
{ encoding: 'utf-8', timeout: 120000 }
{ encoding: 'utf-8', timeout: 1200000 }
);
fs.writeFileSync('.env', `SESSIONID="${JSON.parse(result).session_id}"`, 'utf8');
res.json(JSON.parse(result))

Loading…
Cancel
Save