Skip to content

Commit 6ed720c

Browse files
committed
Merge branch 'feat/cron-new' of ssh://ssh.github.com:443/UnicomAI/hexagent into feat/cron-new
2 parents bd3b7ba + b375c54 commit 6ed720c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

libs/hexagent/hexagent/tools/cron/cronjob.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ async def _ensure_cron_session():
310310
script = (
311311
f"({sudo}useradd -m -d {session_home} -s /bin/bash --no-log-init "
312312
f"{session_key} 2>/dev/null || true) && "
313-
f"{sudo}mkdir -p {all_dirs} && {sudo}chown -R {session_key} {writable}"
313+
f"{sudo}mkdir -p {all_dirs} && {sudo}chown -R {session_key} {writable} && "
314+
f"{sudo}tee {session_home}/.bash_profile >/dev/null <<'BASHPROFILE'\n"
315+
f"umask 0022\n"
316+
f"BASHPROFILE\n"
317+
f"{sudo}chmod 644 {session_home}/.bash_profile"
314318
)
315319
logger.info(
316320
"[CronJob] Pre-create session (darwin): session_key=%s "

libs/hexagent_demo/frontend/src/components/Sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default function Sidebar({ onNewConversation, onOpenSettings, onOpenSearc
6666
dispatch({ type: "ADD_CONVERSATION", payload: conv });
6767
})
6868
.catch(() => {});
69+
dispatch({ type: "CLEAR_UNREAD_REMINDER", payload: id });
6970
}
7071
clearUnreadReminder(id).catch(() => {});
7172
},

0 commit comments

Comments
 (0)