Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(remote): der Dateischalter verspricht keine Shell mehr

purple90d4d51c8dc1
diff --git a/src/components/settings/RemoteAccessDocs.tsx b/src/components/settings/RemoteAccessDocs.tsx
index 010ee3bd..78c887f1 100644
--- a/src/components/settings/RemoteAccessDocs.tsx
+++ b/src/components/settings/RemoteAccessDocs.tsx
@@ -102,8 +102,8 @@ export function RemoteAccessDocs() {
<li>
<p className="text-[0.6rem] text-gray-700 dark:text-gray-300">Filesystem Access</p>
<p className="text-[0.55rem] text-gray-500">
- Lets the remote agent read and write files and run shell commands in the dispatched
- working folder. Leave off if you only want to chat.
+ Lets the remote agent read and write files in the dispatched working folder. Leave
+ off if you only want to chat.
</p>
</li>
<li>
diff --git a/src/components/settings/__tests__/keine-gedankenstriche-in-remote-und-local-api.test.ts b/src/components/settings/__tests__/keine-gedankenstriche-in-remote-und-local-api.test.ts
index 0c298722..9c2f7598 100644
--- a/src/components/settings/__tests__/keine-gedankenstriche-in-remote-und-local-api.test.ts
+++ b/src/components/settings/__tests__/keine-gedankenstriche-in-remote-und-local-api.test.ts
@@ -62,3 +62,33 @@ describe('die Texte aus T5 tragen keinen Gedankenstrich', () => {
expect(mitKommentar).toContain('No web page may read this API')
})
})
+
+/**
+ * R2-29: der Erklaertext versprach Shell hinter dem Filesystem-Schalter.
+ *
+ * "Lets the remote agent read and write files AND RUN SHELL COMMANDS in the
+ * dispatched working folder" stand unter dem Dateizugriff. Der Schalter macht
+ * das nicht, dafuer gibt es den vierten Punkt weiter unten, und ein Nutzer, der
+ * bewusst nur Dateizugriff geben wollte, las hier, er gebe damit auch die
+ * Shell. Die Rust-Seite bleibt unangetastet, der Text war falsch, nicht die
+ * Trennung.
+ */
+describe('R2-29: der Dateischalter verspricht keine Shell', () => {
+ const docs = () => ausgeliefert(join('components', 'settings', 'RemoteAccessDocs.tsx'))
+
+ it('nennt shell commands nur noch im vierten Punkt', () => {
+ const quelle = docs()
+ expect([...quelle.matchAll(/run shell commands/g)]).toHaveLength(1)
+ const dateiteil = quelle.slice(
+ quelle.indexOf('Filesystem Access'),
+ quelle.indexOf('Downloads &amp; Installs'),
+ )
+ expect(dateiteil, 'der Dateischalter verspricht weiter die Shell')
+ .not.toContain('shell')
+ expect(dateiteil).toContain('read and write files in the dispatched working folder')
+ })
+
+ it('NEGATIVKONTROLLE: der vierte Punkt bleibt wortgleich', () => {
+ expect(docs()).toContain('Lets the remote device run shell commands and code on this machine.')
+ })
+})