A rudimentary app for passing permission prompts on Claude Code for VS Code only works on foreground. You can use it like an API, though.