"dusk bot can't be deleted" points at Settings → General, where there is no such switch

Aperta
#74 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with server/default-bot.ts:21 and trace the refusal notice, then read DefaultBotSidebarRow in src/components/DefaultBotControls.tsx:36 and its rendering path through src/components/SettingsBots.tsx:104 and src/components/SettingsPanes.tsx:526. Check how the viewer's Dusk row is determined in src/lib/default-bot.ts:33. Update the notice or control placement so the guidance matches what viewers can access; done when the notice points to the actual setting and is omitted when that setting is absent.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happened

Trying to delete or archive the helper, dusk bot, shows this notice by the composer:

dusk bot can't be deleted or archived. To take it off the sidebar, choose Hide in its menu, or turn off "Show dusk bot in the sidebar" in Settings → General.

Settings → General has no such switch. The notice's own words (server/default-bot.ts:21) and the switch's home disagree:

  • GeneralPane (src/components/SettingsPanes.tsx:185) holds the account rows, appearance, typing, notifications and data sharing. Nothing about Dusk.
  • "Show dusk bot in the sidebar" is DefaultBotSidebarRow (src/components/DefaultBotControls.tsx:36, itself commented "Settings → General"), rendered only by BotDefaultsRows (src/components/SettingsBots.tsx:104), which ModelsPane shows at src/components/SettingsPanes.tsx:526.
  • So the switch is in Settings → Models, in the group labelled "New bots" (settings.advanced.bots.defaults), not General. Under "New bots" it also reads as a policy for bots made later rather than for the Dusk row you have.
  • On a shared server the row is absent entirely: myDefaultBot finds the viewer's own Dusk (src/lib/default-bot.ts:33) and the row renders nothing when there is none, so the only sentence offering a way out points at a switch that does not exist for that viewer.
Steps to reproduce
  1. Right-click dusk bot's row, choose Hide (or try Delete).
  2. Read the notice: it says Settings → General.
  3. Open Settings → General: no "Show dusk bot in the sidebar".
  4. Find it in Settings → Models, under "New bots".
Version

0.2.17

Platform

macOS

Engine

No response

Logs or screenshots
server/default-bot.ts:21  defaultBotRefusal() says "in Settings → General"
src/components/SettingsPanes.tsx:185  GeneralPane: account, appearance, typing, notifications, data sharing
src/components/SettingsPanes.tsx:526  has("bots") && <BotDefaultsRows />
src/components/SettingsBots.tsx:104     BotDefaultsRows → DefaultBotSidebarRow (group: "New bots")
Fix direction: say where it is (Settings → Models → New bots), or move the switch beside the bot it
governs, and leave the sentence out when the row cannot render for the viewer.
Lingua principale
TypeScript
Stelle
277
Fork
27
Merge medio
2h 47m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DuskBotAI/duskbot

Tutte le issue di DuskBotAI/duskbot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.