# fix: add error handling and address review feedback · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/84b71e0a016acc71cf12e375a2b151ee20bc11b3)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 84b71e0a016acc71cf12e375a2b151ee20bc11b3

Requested commit: 84b71e0a016acc71cf12e375a2b151ee20bc11b3

Commit: 84b71e0a016acc71cf12e375a2b151ee20bc11b3

Tree: 5c291e8f2514b064b928a8d3ebab014109a6ac7b

Author: Cursor Agent

Committer: Cursor Agent

## Message

```
fix: add error handling and address review feedback

- Validate cwd is non-empty in shell:open-in-editor IPC handler
- Check shell.openPath() return value and throw on error
- Attach spawn error listener to prevent crashes from missing CLI
- Validate localStorage lastEditor against known EDITORS list
- Only call preventDefault() for Cmd+O when action will run

Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>

```

## Parents

- [c8f33b89c68494b74f500a03e131a05b33443df8](https://git.cafe/pingdotgg/t3code/commit/c8f33b89c68494b74f500a03e131a05b33443df8?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/84b71e0a016acc71cf12e375a2b151ee20bc11b3?format=markdown)
