coder-config 0.44.45 → 0.44.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@
19
19
 
20
20
  <!-- PWA Manifest -->
21
21
  <link rel="manifest" href="/manifest.json">
22
- <script type="module" crossorigin src="/assets/index-Duz9pFi2.js"></script>
22
+ <script type="module" crossorigin src="/assets/index-Cp5LNu-P.js"></script>
23
23
  <link rel="stylesheet" crossorigin href="/assets/index-ChBU02w_.css">
24
24
  </head>
25
25
  <body>
@@ -83,8 +83,6 @@ class TerminalServer {
83
83
 
84
84
  // If initial command provided, execute it after a short delay
85
85
  if (cmd) {
86
- console.log('[Terminal] Initial command:', cmd);
87
- console.log('[Terminal] Delayed command:', delayedCmd ? `${delayedCmd.substring(0, 50)}...` : 'none');
88
86
  setTimeout(() => {
89
87
  ptyProcess.write(cmd + '\r');
90
88
 
@@ -102,12 +100,9 @@ class TerminalServer {
102
100
  // First wait for the Claude Code banner to appear
103
101
  if (!bannerSeen && outputBuffer.includes('Claude Code')) {
104
102
  bannerSeen = true;
105
- console.log('[Terminal] Banner detected');
106
103
  }
107
104
 
108
105
  // After banner, look for the actual input prompt
109
- // Claude shows "> " or "❯ " when ready for input
110
- // The prompt appears on its own line after the banner
111
106
  if (bannerSeen) {
112
107
  const lines = outputBuffer.split('\n');
113
108
  const lastFewLines = lines.slice(-5).join('\n');
@@ -119,16 +114,11 @@ class TerminalServer {
119
114
  lastFewLines.includes('> Try') ||
120
115
  lastFewLines.includes(']133;B')) { // Terminal prompt marker
121
116
  delayedCmdSent = true;
122
- console.log('[Terminal] Prompt detected, waiting 2s before sending...');
123
- console.log('[Terminal] Command length:', delayedCmd?.length || 0);
124
117
  // Wait for Claude to be fully ready
125
118
  setTimeout(() => {
126
- console.log('[Terminal] Sending command...');
127
119
  ptyProcess.write(delayedCmd);
128
- console.log('[Terminal] Command sent, waiting 2s before Enter...');
129
120
  setTimeout(() => {
130
- ptyProcess.write('\r\n');
131
- console.log('[Terminal] Enter sent (\\r\\n)');
121
+ ptyProcess.write('\r');
132
122
  }, 2000);
133
123
  }, 2000);
134
124
  }
@@ -141,12 +131,10 @@ class TerminalServer {
141
131
  // Fallback timeout in case detection fails
142
132
  setTimeout(() => {
143
133
  if (!delayedCmdSent) {
144
- console.log('[Terminal] Fallback timeout triggered after', delayedCmdDelay, 'ms');
145
134
  delayedCmdSent = true;
146
- // Send command first, then Enter separately with longer delays
147
135
  ptyProcess.write(delayedCmd);
148
136
  setTimeout(() => {
149
- ptyProcess.write('\r\n');
137
+ ptyProcess.write('\r');
150
138
  }, 2000);
151
139
  }
152
140
  }, delayedCmdDelay);