Skip to content

after setting custom tmp dir. error shows when dir not exist #362

@dacec354

Description

@dacec354

What happened

> bunx reasonix code
▸ reasonix code: rooted at /home/dacec/Projects/js/DeepSeek-Reasonix, session "code-DeepSeek-Reasonix" · 22 native tool(s)
⌘ MCP · filesystem      ↻ handshake…   initialise → tools/list → resources/list
Error accessing directory /tmp/reasonix-sandbox: Error: ENOENT: no such file or directory, stat '/tmp/reasonix-sandbox'
    at async Object.stat (node:internal/fs/promises:1680:18)
    at async file:///home/dacec/.npm/_npx/a3241bba59c344f5/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js:43:23
    at async Promise.all (index 0)
    at async file:///home/dacec/.npm/_npx/a3241bba59c344f5/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js:41:1 {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/tmp/reasonix-sandbox'
}

Expected
auto create. or more clear, show user friendly error message and guide user to mkdir?

Reproduction
Assign inexisting dir to temp directory. then bunx reasonix code

Environment

  • Reasonix version:0.30.2
  • Bun version: 1.3.11
  • OS: archlinux kernel version 7.0.3-arch1-2
  • DeepSeek model: deepseek-v4-flash

Logs / transcript
empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions