wait at an attachment for instructions, show picture in diagnostic chat
This commit is contained in:
parent
eb3692ef81
commit
1b4df0565a
|
|
@ -984,7 +984,8 @@ class ARIABridge:
|
||||||
text = (f"Stefan hat dir ein Bild geschickt: {file_name}"
|
text = (f"Stefan hat dir ein Bild geschickt: {file_name}"
|
||||||
f"{f' ({width}x{height}px)' if width else ''}"
|
f"{f' ({width}x{height}px)' if width else ''}"
|
||||||
f", {size_kb}KB."
|
f", {size_kb}KB."
|
||||||
f" Das Bild liegt unter: {file_path}")
|
f" Das Bild liegt unter: {file_path}"
|
||||||
|
f" Warte auf Stefans Anweisung was du damit tun sollst.")
|
||||||
await self.send_to_core(text, source="app-file")
|
await self.send_to_core(text, source="app-file")
|
||||||
# Dann App informieren (optional, darf nicht crashen)
|
# Dann App informieren (optional, darf nicht crashen)
|
||||||
try:
|
try:
|
||||||
|
|
@ -1006,7 +1007,8 @@ class ARIABridge:
|
||||||
# ERST an aria-core senden
|
# ERST an aria-core senden
|
||||||
text = (f"Stefan hat dir eine Datei geschickt: {file_name}"
|
text = (f"Stefan hat dir eine Datei geschickt: {file_name}"
|
||||||
f" ({file_type}, {size_kb}KB)."
|
f" ({file_type}, {size_kb}KB)."
|
||||||
f" Die Datei liegt unter: {file_path}")
|
f" Die Datei liegt unter: {file_path}"
|
||||||
|
f" Warte auf Stefans Anweisung was du damit tun sollst.")
|
||||||
await self.send_to_core(text, source="app-file")
|
await self.send_to_core(text, source="app-file")
|
||||||
try:
|
try:
|
||||||
await self._send_to_rvs({
|
await self._send_to_rvs({
|
||||||
|
|
|
||||||
|
|
@ -499,6 +499,17 @@ function connectRVS(forcePlain) {
|
||||||
pipelineEnd(true, `Antwort via RVS von ${sender}: "${(msg.payload.text || "").slice(0, 120)}"`);
|
pipelineEnd(true, `Antwort via RVS von ${sender}: "${(msg.payload.text || "").slice(0, 120)}"`);
|
||||||
}
|
}
|
||||||
broadcast({ type: "rvs_chat", msg });
|
broadcast({ type: "rvs_chat", msg });
|
||||||
|
} else if (msg.type === "file_saved" && msg.payload) {
|
||||||
|
// Bild/Datei-Upload von der App — im Chat anzeigen
|
||||||
|
const name = msg.payload.name || "?";
|
||||||
|
const serverPath = msg.payload.serverPath || "";
|
||||||
|
const mimeType = msg.payload.mimeType || "";
|
||||||
|
log("info", "rvs", `Datei empfangen: ${name} (${serverPath})`);
|
||||||
|
// Als User-Nachricht mit Pfad broadcasten (Diagnostic zeigt Bilder inline)
|
||||||
|
broadcast({ type: "rvs_chat", msg: {
|
||||||
|
type: "chat",
|
||||||
|
payload: { text: `Anhang: ${name}\n${serverPath}`, sender: "user" }
|
||||||
|
}});
|
||||||
} else if (msg.type === "heartbeat") {
|
} else if (msg.type === "heartbeat") {
|
||||||
// ignorieren
|
// ignorieren
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
13
issue.md
13
issue.md
|
|
@ -1,7 +1,18 @@
|
||||||
bildupload ghet noch nicht.
|
bildupload ghet noch nicht.
|
||||||
|
|
||||||
|
#erledigt
|
||||||
sprachnachrichten werden nicht als zweite nachricht dargestellt, damit man weiß was man gesendet hat
|
sprachnachrichten werden nicht als zweite nachricht dargestellt, damit man weiß was man gesendet hat
|
||||||
|
#ende
|
||||||
|
|
||||||
|
|
||||||
cache leeren, bilder werden nicht neu geladen beim antippen.
|
cache leeren, bilder werden nicht neu geladen beim antippen.
|
||||||
autoload geht nicht
|
autoload geht nicht
|
||||||
|
|
||||||
wenn man auf das ohr zum hören klickt stürzt ab
|
wenn man auf das ohr zum hören klickt stürzt ab
|
||||||
|
|
||||||
aria liest die nachrichten nicht vor
|
aria liest die nachrichten nicht vor
|
||||||
autoscroll geht doch noch nicht zur letzten nachricht
|
|
||||||
|
|
||||||
|
# erledigt autoscroll geht doch noch nicht zur letzten nachricht
|
||||||
|
unserer memory brain
|
||||||
|
ende
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue