Skip to content

Commit a2757e7

Browse files
authored
Add changeset for config command dynamic import fix (#393)
1 parent 6d84924 commit a2757e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@fission-ai/openspec": patch
3+
---
4+
5+
Fix pre-commit hook hang issue in config command by using dynamic import for @inquirer/prompts
6+
7+
The config command was causing pre-commit hooks to hang indefinitely due to stdin event listeners being registered at module load time. This fix converts the static import to a dynamic import that only loads inquirer when the `config reset` command is actually used interactively.
8+
9+
Also adds ESLint with a rule to prevent static @inquirer imports, avoiding future regressions.

0 commit comments

Comments
 (0)