@hexdecimal16/nexo 0.4.10 → 0.4.11
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.
|
@@ -255,10 +255,12 @@ export class Session {
|
|
|
255
255
|
steer(text) {
|
|
256
256
|
if (!this.busy || !text.trim())
|
|
257
257
|
return false;
|
|
258
|
+
// Same `@file` attachment as a typed turn, so the agent gets the contents instead of reading the file itself.
|
|
259
|
+
const sent = expandMentions(text, this.state.cwd).text;
|
|
258
260
|
if (this.steerCtl)
|
|
259
|
-
this.steerCtl.steer(
|
|
261
|
+
this.steerCtl.steer(sent);
|
|
260
262
|
else
|
|
261
|
-
this.steerPending.push(
|
|
263
|
+
this.steerPending.push(sent);
|
|
262
264
|
return true;
|
|
263
265
|
}
|
|
264
266
|
/** Drops steered messages the running turn has not taken yet. */
|