mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Temporary debug logging for the blank group-list bug investigation
This commit is contained in:
1 parent
b4ec2a26b6
commit
79df26c3bc
3 files changed
+42
No files matched your search
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"hooks": {
|
||||||
|
"PreToolUse": [
|
||||||
|
{
|
||||||
|
"matcher": "Bash|Grep",
|
||||||
|
"hooks": [
|
||||||
|
{
|
||||||
|
"type": "command",
|
||||||
|
"command": "C:/Users/rico/AppData/Local/Programs/Python/Python312/Scripts/graphify.EXE hook-guard search"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matcher": "Read|Glob",
|
||||||
|
"hooks": [
|
||||||
|
{
|
||||||
|
"type": "command",
|
||||||
|
"command": "C:/Users/rico/AppData/Local/Programs/Python/Python312/Scripts/graphify.EXE hook-guard read"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
## graphify
|
||||||
|
|
||||||
|
This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.
|
||||||
|
|
||||||
|
Rules:
|
||||||
|
- For codebase questions, first run `graphify query "<question>"` when graphify-out/graph.json exists. Use `graphify path "<A>" "<B>"` for relationships and `graphify explain "<concept>"` for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output.
|
||||||
|
- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
|
||||||
|
- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
|
||||||
|
- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost).
|
||||||
@@ -1809,6 +1809,9 @@ async fn run(args: Args) -> Result<()> {
|
|||||||
},
|
},
|
||||||
LoopOutcome::ConEvent(ev) => match ev {
|
LoopOutcome::ConEvent(ev) => match ev {
|
||||||
Some(Ok(StreamItem::BookEvents(events))) => {
|
Some(Ok(StreamItem::BookEvents(events))) => {
|
||||||
|
if pending_channel_group_list || pending_server_group_list {
|
||||||
|
eprintln!("DEBUG BookEvents while pending group list: {events:?}");
|
||||||
|
}
|
||||||
for event in &events {
|
for event in &events {
|
||||||
if let BookEvent::Message { target, invoker, message } = event {
|
if let BookEvent::Message { target, invoker, message } = event {
|
||||||
match target {
|
match target {
|
||||||
@@ -1918,6 +1921,9 @@ async fn run(args: Args) -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(Ok(StreamItem::MessageResult(handle, result))) => {
|
Some(Ok(StreamItem::MessageResult(handle, result))) => {
|
||||||
|
if pending_channel_group_list || pending_server_group_list {
|
||||||
|
eprintln!("DEBUG MessageResult while pending group list: handle={handle:?} result={result:?}");
|
||||||
|
}
|
||||||
if let Some(label) = pending_messages.remove(&handle) {
|
if let Some(label) = pending_messages.remove(&handle) {
|
||||||
if let Err(e) = result {
|
if let Err(e) = result {
|
||||||
if e.missing_permission.is_some() {
|
if e.missing_permission.is_some() {
|
||||||
@@ -1931,6 +1937,9 @@ async fn run(args: Args) -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(Ok(StreamItem::MessageEvent(msg))) => {
|
Some(Ok(StreamItem::MessageEvent(msg))) => {
|
||||||
|
if pending_channel_group_list || pending_server_group_list {
|
||||||
|
eprintln!("DEBUG MessageEvent while pending group list: {msg:?}");
|
||||||
|
}
|
||||||
if pending_server_log {
|
if pending_server_log {
|
||||||
if let InMessage::ServerLog(log) = &msg {
|
if let InMessage::ServerLog(log) = &msg {
|
||||||
let lines: Vec<String> = log.iter().map(|part| part.log.clone()).collect();
|
let lines: Vec<String> = log.iter().map(|part| part.log.clone()).collect();
|
||||||
|
|||||||
Reference in new issue
Block a user