@ouro.bot/cli 0.1.0-alpha.179 → 0.1.0-alpha.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.json +6 -0
- package/dist/senses/cli.js +12 -0
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.180",
|
|
6
|
+
"changes": [
|
|
7
|
+
"fix(cli): suppress React unmount warning on TUI exit"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.179",
|
|
6
12
|
"changes": [
|
package/dist/senses/cli.js
CHANGED
|
@@ -837,7 +837,19 @@ async function runCliSession(options) {
|
|
|
837
837
|
finally {
|
|
838
838
|
rl?.close();
|
|
839
839
|
if (inkRef) {
|
|
840
|
+
// Suppress React "state update on unmounted component" warnings during cleanup.
|
|
841
|
+
// Ink's useInput hook fires after unmount — this is harmless but noisy.
|
|
842
|
+
// eslint-disable-next-line no-console -- intentional console.warn/error override for cleanup
|
|
843
|
+
const origWarn = console.warn;
|
|
844
|
+
const origError = console.error; // eslint-disable-line no-console
|
|
845
|
+
// eslint-disable-next-line no-console -- suppress React unmount warnings
|
|
846
|
+
console.warn = (...args) => { if (typeof args[0] === "string" && args[0].includes("Can't perform a React state update"))
|
|
847
|
+
return; origWarn.apply(console, args); };
|
|
848
|
+
// eslint-disable-next-line no-console -- suppress React unmount warnings
|
|
849
|
+
console.error = (...args) => { if (typeof args[0] === "string" && args[0].includes("Can't perform a React state update"))
|
|
850
|
+
return; origError.apply(console, args); };
|
|
840
851
|
inkRef.unmount();
|
|
852
|
+
setTimeout(() => { console.warn = origWarn; console.error = origError; }, 100); // eslint-disable-line no-console
|
|
841
853
|
}
|
|
842
854
|
if (options.banner !== false) {
|
|
843
855
|
// eslint-disable-next-line no-console -- terminal UX: goodbye
|