Skip to content

Commit 73adb23

Browse files
authored
πŸ› Fix terminal tool working directory permission #1183
2 parents bd9e742 + 8194fc9 commit 73adb23

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

β€Žfrontend/const/chatConfig.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const chatConfig = {
3030

3131
// File limit configuration
3232
maxFileCount: 50,
33-
maxFileSize: 5 * 1024 * 1024, // Maximum 5MB per file
33+
maxFileSize: 10 * 1024 * 1024, // Maximum 10MB per file
3434

3535
// Supported image file extensions
3636
imageExtensions: ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"],

β€Žmake/terminal/entrypoint.shβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ SSHD_EOF
4545

4646
echo "SSH timeout configuration applied successfully"
4747

48+
# Fix terminal directory permissions if mounted from host
49+
echo "Fixing terminal directory permissions..."
50+
if [ -d "/opt/terminal" ]; then
51+
chown -R $DEV_USER:$DEV_USER /opt/terminal 2>/dev/null || true
52+
chmod 755 /opt/terminal 2>/dev/null || true
53+
echo "βœ… Terminal directory permissions fixed"
54+
else
55+
echo "⚠️ Terminal directory not found"
56+
fi
57+
4858
# Start SSH service
4959
if [ $# -gt 0 ]; then
5060
exec "$@"

0 commit comments

Comments
Β (0)