feat: enable Remote Control (BRIDGE_MODE) with stub completions

- Add BRIDGE_MODE to DEFAULT_FEATURES in dev.ts
- Implement peerSessions.ts: cross-session messaging via bridge API
- Implement webhookSanitizer.ts: redact secrets from webhook payloads
- Replace any stubs in controlTypes.ts with Zod schema-inferred types
- Fix tengu_bridge_system_init default to true for app "active" status

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
unraid
2026-04-03 03:50:36 +08:00
parent 1f0a2e44c8
commit 74e51e7e73
5 changed files with 164 additions and 22 deletions

View File

@@ -290,7 +290,7 @@ export function useReplBridge(messages: Message[], setMessages: (action: React.S
// to put system/init on the REPL-bridge wire. Skills load is
// async (memoized, cheap after REPL startup); fire-and-forget
// so the connected-state transition isn't blocked.
if (getFeatureValue_CACHED_MAY_BE_STALE('tengu_bridge_system_init', false)) {
if (getFeatureValue_CACHED_MAY_BE_STALE('tengu_bridge_system_init', true)) {
void (async () => {
try {
const skills = await getSlashCommandToolSkills(getCwd());