chore: remove non-functional subagent input feature

Subagents (Task tool background agents) are autonomous and cannot
receive input mid-execution. They complete and return results to
the parent session. Removed the input UI and API endpoint.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-26 04:35:50 +01:00
co-authored by Claude Opus 4.5
parent 6187444118
commit 3f73a5f908
12 changed files with 1302 additions and 48 deletions
+14
View File
@@ -665,8 +665,17 @@ class ClaudemanApp {
registerFilePathLinkProvider() {
const self = this;
// Debug: Track if provider is being invoked
let lastInvokedLine = -1;
this.terminal.registerLinkProvider({
provideLinks(bufferLineNumber, callback) {
// Debug logging - only log if line changed to avoid spam
if (bufferLineNumber !== lastInvokedLine) {
lastInvokedLine = bufferLineNumber;
console.debug('[LinkProvider] Checking line:', bufferLineNumber);
}
const buffer = self.terminal.buffer.active;
const line = buffer.getLine(bufferLineNumber);
@@ -736,9 +745,14 @@ class ClaudemanApp {
addLink(match[1], match.index);
}
if (links.length > 0) {
console.debug('[LinkProvider] Found links:', links.map(l => l.text));
}
callback(links.length > 0 ? links : undefined);
}
});
console.log('[LinkProvider] File path link provider registered');
}
showWelcome() {
+6 -3
View File
@@ -1829,6 +1829,7 @@ export class WebServer extends EventEmitter {
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, 'Subagent not found or already completed');
});
// ========== Hook Events ==========
this.app.post('/api/hook-event', async (req) => {
@@ -3005,6 +3006,11 @@ export class WebServer extends EventEmitter {
async start(): Promise<void> {
await this.setupRoutes();
// Restore screen sessions BEFORE accepting connections
// This prevents race conditions where clients connect before state is ready
await this.restoreScreenSessions();
await this.app.listen({ port: this.port, host: '0.0.0.0' });
const protocol = this.https ? 'https' : 'http';
console.log(`Claudeman web interface running at ${protocol}://localhost:${this.port}`);
@@ -3027,9 +3033,6 @@ export class WebServer extends EventEmitter {
this.recordPeriodicTokenUsage();
}, 5 * 60 * 1000);
// Restore screen sessions from previous run
await this.restoreScreenSessions();
// Start subagent watcher for Claude Code background agent visibility (if enabled)
if (this.isSubagentTrackingEnabled()) {
subagentWatcher.start();