Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/lib/AgentTeams.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function Get-BacklogRuleMatch {
}
}
catch {
# rules file parse error - use defaults
Write-Debug "Agent rules file parse error (using defaults): $_"
}

return $result
Expand Down
4 changes: 3 additions & 1 deletion scripts/lib/LauncherCommon.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ function Get-LauncherMetadataEntries {
$entries.Add(($line | ConvertFrom-Json))
}
catch {
Write-Debug "Skipping malformed JSON history entry: $_"
}
if ($entries.Count -ge $MaxCount) {
break
Expand Down Expand Up @@ -1321,12 +1322,13 @@ public class LauncherWinMM {
$localAlias = $alias
$null = [System.Threading.Tasks.Task]::Run([Action]{
Start-Sleep -Milliseconds 8000
try { [void][LauncherWinMM]::mciSendString("close $localAlias", $null, 0, [IntPtr]::Zero) } catch {}
try { [void][LauncherWinMM]::mciSendString("close $localAlias", $null, 0, [IntPtr]::Zero) } catch { Write-Debug "Audio close failed for '$localAlias': $_" }
})
}
}
catch {
# 音声再生の失敗はサイレントに無視(起動をブロックしない)
Write-Debug "Audio playback failed (suppressed to avoid blocking startup): $_"
}
}
Export-ModuleMember -Function Invoke-LauncherNotificationSound
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/LogManager.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function Stop-SessionLog {
}

# Transcript 停止
try { Stop-Transcript -ErrorAction SilentlyContinue } catch { }
try { Stop-Transcript -ErrorAction SilentlyContinue } catch { Write-Debug "Stop-Transcript skipped (no active transcript): $_" }

$script:LoggingActive = $false

Expand Down
2 changes: 1 addition & 1 deletion scripts/main/Start-ClaudeCode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ finally {
Invoke-LauncherNotificationSound -Tool 'claude' -Config $Config -Wait $true
# インスタンスロック解放
if ($null -ne $instanceMutex) {
try { $instanceMutex.ReleaseMutex() } catch { }
try { $instanceMutex.ReleaseMutex() } catch { Write-Debug "ReleaseMutex failed (mutex may already be released): $_" }
$instanceMutex.Dispose()
}
}
1 change: 1 addition & 0 deletions scripts/test/Test-AllTools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function Get-CommandVersionLine {
}
}
catch {
Write-Debug "Version detection failed for '$Command': $_"
}

return $null
Expand Down
Loading