mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-04 22:49:41 +02:00
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:
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user