fix: delete agent 500 error + dynamic personality + deployment guide
- Fix delete agent 500: clean up FK records (agent_llm_logs, permissions, schedules, executions, team_members) and unbind goals/tasks before delete - Remove hardcoded personality templates in Android, replace with dynamic system prompt generation from name + description - Set promptSectionsEnabled=false to bypass PromptComposer for personality - Add Tencent Cloud Linux deployment guide (Docker Compose) - Accumulated backend service updates, frontend UI fixes, Android app changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
19
_start_api.ps1
Normal file
19
_start_api.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
$env:PYTHONPATH = 'D:\aaa\aiagent\backend'
|
||||
$proc = Start-Process -FilePath 'D:\aaa\aiagent\backend\venv\Scripts\python.exe' `
|
||||
-ArgumentList '-m', 'uvicorn', 'app.main:app', '--host', '0.0.0.0', '--port', '8037' `
|
||||
-WorkingDirectory 'D:\aaa\aiagent\backend' `
|
||||
-WindowStyle Hidden `
|
||||
-RedirectStandardOutput 'D:\aaa\aiagent\logs\api_stdout.log' `
|
||||
-RedirectStandardError 'D:\aaa\aiagent\logs\api_stderr.log' `
|
||||
-PassThru
|
||||
Write-Host "API PID: $($proc.Id)"
|
||||
Start-Sleep -Seconds 5
|
||||
$listening = netstat -ano | Select-String ":8037.*LISTENING"
|
||||
if ($listening) {
|
||||
Write-Host "SUCCESS: API is listening on port 8037"
|
||||
} else {
|
||||
Write-Host "WARNING: API not yet listening, checking stderr..."
|
||||
if (Test-Path 'D:\aaa\aiagent\logs\api_stderr.log') {
|
||||
Get-Content 'D:\aaa\aiagent\logs\api_stderr.log' -Tail 10
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user