Skip to content

Commit 715e30c

Browse files
kwonah0claude
andcommitted
fix: rebuild v1.3.4 AppImage with latest code
- Update package.json version to 1.3.4 - Fix TypeScript error by reordering function declarations - Rebuild AppImage with proper latest code including: - Fixed PTY marker extraction - Disabled DevTools in production - Removed [DTUI SHELL] prefix - Enhanced debug logging Previous AppImage was incorrectly copied from old version. New AppImage contains all latest improvements. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1b4f7e8 commit 715e30c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dtui2-react",
3-
"version": "1.3.2",
3+
"version": "1.3.4",
44
"main": "electron/main.js",
55
"scripts": {
66
"dev": "vite",

src/agents/ElectronShellAIAgent.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@ export class ElectronShellAIAgent implements AIAgent {
9090
// Format output based on config
9191
let output = '';
9292

93-
// If PTY is used, apply extraction and return with metadata
94-
if (result.metadata?.isPty) {
95-
const extractedContent = extractResponse(result.content);
96-
// Return special format that App.tsx can detect
97-
return `__PTY_OUTPUT__${JSON.stringify({
98-
content: extractedContent,
99-
isPty: true
100-
})}`;
101-
}
102-
10393
const wrapInCodeBlock = (text: string) => {
10494
if (this.outputConfig.useCodeBlock) {
10595
return `\`\`\`${this.outputConfig.codeBlockSyntax}\n${text}\n\`\`\``;
@@ -164,6 +154,16 @@ export class ElectronShellAIAgent implements AIAgent {
164154
return extracted;
165155
};
166156

157+
// If PTY is used, apply extraction and return with metadata
158+
if (result.metadata?.isPty) {
159+
const extractedContent = extractResponse(result.content);
160+
// Return special format that App.tsx can detect
161+
return `__PTY_OUTPUT__${JSON.stringify({
162+
content: extractedContent,
163+
isPty: true
164+
})}`;
165+
}
166+
167167
if (result.success) {
168168
const stdout = result.metadata?.stdout || result.content || 'Command completed successfully';
169169
const extractedOutput = extractResponse(stdout);

0 commit comments

Comments
 (0)