Update secure console design: simplify detached mode
When detached, console changes prompt from '>' to '#' and rejects @messages while still accepting /commands. Simpler than the ring buffer approach - operator can still check status and re-attach. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
fc8b6608cf
commit
f195835bea
1 changed files with 15 additions and 5 deletions
|
|
@ -353,14 +353,24 @@ async def handle_console_prompt(payload: ConsolePrompt, metadata: HandlerMetadat
|
||||||
|
|
||||||
### Detached Behavior
|
### Detached Behavior
|
||||||
|
|
||||||
When console is detached:
|
When console is detached, prompt changes and message sending is disabled:
|
||||||
|
|
||||||
|
```
|
||||||
|
Attached: Detached:
|
||||||
|
> @greeter hello ← works # @greeter hello ← rejected
|
||||||
|
> /status ← works # /status ← works
|
||||||
|
# /attach
|
||||||
|
Password: ********
|
||||||
|
> _ ← re-attached
|
||||||
|
```
|
||||||
|
|
||||||
| Concern | Behavior |
|
| Concern | Behavior |
|
||||||
|---------|----------|
|
|---------|----------|
|
||||||
| Messages to console | Queued in ring buffer (last 100) |
|
| Prompt | Changes from `>` to `#` |
|
||||||
| Organism operation | Continues normally |
|
| `/commands` | Still work (can check status, attach, quit) |
|
||||||
| Logging | All output logged to file |
|
| `@messages` | Rejected: "Console detached. Use /attach" |
|
||||||
| Re-attach | `/attach` displays queued messages |
|
| Organism | Continues running normally |
|
||||||
|
| Logging | Output logged to file while detached |
|
||||||
|
|
||||||
### Commands
|
### Commands
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue