summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--js/example/ink.tsx1
-rw-r--r--js/src/tool/edit.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/js/example/ink.tsx b/js/example/ink.tsx
index 5eaab4d3b..2cd4aaa0c 100644
--- a/js/example/ink.tsx
+++ b/js/example/ink.tsx
@@ -38,6 +38,7 @@ function App() {
const [state, setState] = useState(initial)
const [input, setInput] = useState("")
+
useEffect(() => {
fetch("http://localhost:16713/event")
.then(stream => {
diff --git a/js/src/tool/edit.ts b/js/src/tool/edit.ts
index 56f31ad2e..96d8e0c54 100644
--- a/js/src/tool/edit.ts
+++ b/js/src/tool/edit.ts
@@ -132,6 +132,9 @@ export const edit = Tool.define({
}
return {
+ metadata: {
+ diagnostics,
+ },
output,
};
},